Add explicit comparisons where we were implicitly checking for non-zero

* This fixes some warnings from PVS Studio, though none of these checks were
  actually wrong it's better to be explicit.
This commit is contained in:
baldurk
2020-01-21 13:45:12 +00:00
parent 421201df7a
commit 68b9d223b0
23 changed files with 42 additions and 45 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ Connection::Connection(Network::Socket *sock)
char response[15] = {};
reader.Read(response, handshakeLength);
if(memcmp(handshake, response, 14))
if(memcmp(handshake, response, 14) != 0)
{
RDCERR("handshake failed - received >%s< - expected >%s<", response, handshake);
error = true;