mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -603,7 +603,7 @@ px_find_cipher(const char *name, PX_Cipher **res)
|
||||
name = px_resolve_alias(int_aliases, name);
|
||||
|
||||
for (i = 0; int_ciphers[i].name; i++)
|
||||
if (!strcmp(int_ciphers[i].name, name))
|
||||
if (strcmp(int_ciphers[i].name, name) == 0)
|
||||
{
|
||||
c = int_ciphers[i].load();
|
||||
break;
|
||||
|
Reference in New Issue
Block a user