]> granicus.if.org Git - postgresql/commit
Fix more strcmp() calls using boolean-like comparisons for result checks
authorMichael Paquier <michael@paquier.xyz>
Fri, 12 Apr 2019 01:16:49 +0000 (10:16 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 12 Apr 2019 01:16:49 +0000 (10:16 +0900)
commitd527fda6216780281b90f48820ae978c61c7905c
tree3563030ccc2a229701963fa6f13e6e12e5a1b78e
parent798070ec058fe75757587c9e9916cc35c623f427
Fix more strcmp() calls using boolean-like comparisons for result checks

Such calls can confuse the reader as strcmp() uses an integer as result.
The places patched here have been spotted by Thomas Munro, David Rowley
and myself.

Author: Michael Paquier
Reviewed-by: David Rowley
Discussion: https://postgr.es/m/20190411021946.GG2728@paquier.xyz
contrib/spi/refint.c
src/backend/commands/lockcmds.c
src/backend/tsearch/spell.c
src/test/modules/test_rls_hooks/test_rls_hooks.c