Use "strcmp(a, b) != 0" so it's clearer what we're checking for

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-11-04 09:50:23 +01:00
parent 3c920996b8
commit 053770b81b

View file

@ -31,7 +31,7 @@ BOOL LoadConfigData(CONFIG *conf)
fclose(fp);
// Check if version is not correct, and return if it failed
if (fread_result != 1 || strcmp(conf->proof, config_magic))
if (fread_result != 1 || strcmp(conf->proof, config_magic) != 0)
{
memset(conf, 0, sizeof(CONFIG));
return FALSE;