mirror of
https://github.com/postgres/postgres.git
synced 2025-12-24 06:01:07 +03:00
Standardize treatment of strcmp() return value
Always compare the return value to 0, don't use cute tricks like if (!strcmp(...)).
This commit is contained in:
@@ -96,7 +96,7 @@ px_crypt(const char *psw, const char *salt, char *buf, unsigned len)
|
||||
{
|
||||
if (!c->id_len)
|
||||
break;
|
||||
if (!strncmp(salt, c->id, c->id_len))
|
||||
if (strncmp(salt, c->id, c->id_len) == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user