]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - text-utils/hexdump-display.c
[clang-tidy] fix wrong *cmp usage
[thirdparty/util-linux.git] / text-utils / hexdump-display.c
index 6399608c0cc6287d64bb9ab37d7738030c265c73..695b4724b5607310ed7f8fbf82b1afb549f29da6 100644 (file)
@@ -377,7 +377,7 @@ get(struct hexdump *hex)
                        hex->length -= n;
                if (!(need -= n)) {
                        if (vflag == ALL || vflag == FIRST ||
-                           memcmp(curp, savp, hex->blocksize)) {
+                           memcmp(curp, savp, hex->blocksize) != 0) {
                                if (vflag == DUP || vflag == FIRST)
                                        vflag = WAIT;
                                return(curp);