From 42aae8196f4c2114b7418d344dd2d33287f18070 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 1 Aug 2018 12:21:53 +0200 Subject: [PATCH] Cleanup: remove silly " != 0" expression In metadata.cpp, replace a silly "if (!memcmp(...) != 0)" by the intended "if (!memcmp(...))" Obviously, both have the same effect. Fixes a warning. Signed-off-by: Berthold Stoeger --- core/metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/metadata.cpp b/core/metadata.cpp index 6216476ab..2457c69c0 100644 --- a/core/metadata.cpp +++ b/core/metadata.cpp @@ -446,7 +446,7 @@ static bool parseASF(QFile &f, metadata *metadata) header_len -= object_len; object_len -= 24; - if (!memcmp(data, "\xa1\xdc\xab\x8c\x47\xa9\xcf\x11\x8e\xe4\x0\xc0\xc\x20\x53\x65", 16) != 0) { + if (!memcmp(data, "\xa1\xdc\xab\x8c\x47\xa9\xcf\x11\x8e\xe4\x0\xc0\xc\x20\x53\x65", 16)) { // This is a file properties object. The interesting data are: // quadword (64 bit) at byte 24: creation date in 100-nanoseconds since Jan. 1, 1601. // quadword (64 bit) at byte 40: duration in 100-nanoseconds.