From c547894788cd8a91add84e38cb939d6807b9eb38 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 26 Oct 2024 14:43:26 +0300 Subject: [PATCH] Ticket #4572: code cleanup before 4.8.33 release. (compare_files): fix coding style. Signed-off-by: Andrew Borodin Signed-off-by: Yury V. Zaytsev --- src/filemanager/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c index 299a79bd4..ad730dec1 100644 --- a/src/filemanager/cmd.c +++ b/src/filemanager/cmd.c @@ -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);