mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
df156a56c0
commit
42aae8196f
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue