summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-08-01 12:21:53 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-08-01 15:30:54 +0300
commit42aae8196f4c2114b7418d344dd2d33287f18070 (patch)
tree6ed3fec07a117aafd77b596c5a7b081521d791ac
parentdf156a56c08a56eb380711a507ef739d8150a71f (diff)
downloadsubsurface-42aae8196f4c2114b7418d344dd2d33287f18070.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
-rw-r--r--core/metadata.cpp2
1 files changed, 1 insertions, 1 deletions
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.