1
0
Fork 0

Codechange: be explicit in pointer comparisons

release/1.11
Patric Stout 2021-04-27 19:58:32 +02:00 committed by Charles Pigott
parent cae0b46e38
commit 32ead3aba6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**