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:
parent
3c920996b8
commit
053770b81b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue