summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/internal.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2011-12-27 21:19:09 +0200
committerPeter Eisentraut <peter_e@gmx.net>2011-12-27 21:19:09 +0200
commit037a82704ce644e2b1c3946345b54444caddb1a5 (patch)
treed89abc55ac119b86d69c01f819ab8fb22a1382c6 /contrib/pgcrypto/internal.c
parentd383c23f6fbc4a79dae66483cf4f7051121008ad (diff)
Standardize treatment of strcmp() return value
Always compare the return value to 0, don't use cute tricks like if (!strcmp(...)).
Diffstat (limited to 'contrib/pgcrypto/internal.c')
-rw-r--r--contrib/pgcrypto/internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pgcrypto/internal.c b/contrib/pgcrypto/internal.c
index 5ceb5271bbb..a02c943e049 100644
--- a/contrib/pgcrypto/internal.c
+++ b/contrib/pgcrypto/internal.c
@@ -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;