Skip to content

Commit

Permalink
PVS 170: use boolean for if comparison
Browse files Browse the repository at this point in the history
Direct use of strcmp result in if is against our coding style.
  • Loading branch information
pulkomandy committed Jul 26, 2015
1 parent 67d9a9c commit 2f86394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kits/support/Archivable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ check_signature(const char* signature, image_info& info)
return err;
}

if (strcmp(signature, imageSignature))
if (strcmp(signature, imageSignature) != 0)
return B_MISMATCHED_VALUES;

return B_OK;
Expand Down

0 comments on commit 2f86394

Please sign in to comment.