Codechange: be explicit in pointer comparisons

pull/332/head
Patric Stout 3 years ago committed by Patric Stout
parent cb2ef1ea4b
commit 84c75a7b9a

@ -103,7 +103,7 @@ bool IsNetworkCompatibleVersion(const char *other)
const char *hash1 = ExtractNetworkRevisionHash(GetNetworkRevisionString());
const char *hash2 = ExtractNetworkRevisionHash(other);
return hash1 && hash2 && (strncmp(hash1, hash2, GITHASH_SUFFIX_LEN) == 0);
return hash1 != nullptr && hash2 != nullptr && strncmp(hash1, hash2, GITHASH_SUFFIX_LEN) == 0;
}
/**

Loading…
Cancel
Save