Ticket #4572: code cleanup before 4.8.33 release.

(compare_files): fix coding style.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Andrew Borodin 2024-10-26 14:43:26 +03:00
parent 511d4d853b
commit c547894788

View File

@ -194,7 +194,7 @@ compare_files (const vfs_path_t *vpath1, const vfs_path_t *vpath2, off_t size)
;
}
while (n1 == n2 && n1 == sizeof (buf1) && memcmp (buf1, buf2, sizeof (buf1)) == 0);
result = (n1 != n2) || memcmp (buf1, buf2, n1);
result = (n1 != n2) || (memcmp (buf1, buf2, n1) != 0);
rotate_dash (FALSE);
close (file2);