mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21: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:
@ -2368,7 +2368,7 @@ psql_completion(char *text, int start, int end)
|
||||
|
||||
/* Complete LOCK [TABLE] <table> with "IN" */
|
||||
else if ((pg_strcasecmp(prev2_wd, "LOCK") == 0 &&
|
||||
pg_strcasecmp(prev_wd, "TABLE")) ||
|
||||
pg_strcasecmp(prev_wd, "TABLE") != 0) ||
|
||||
(pg_strcasecmp(prev2_wd, "TABLE") == 0 &&
|
||||
pg_strcasecmp(prev3_wd, "LOCK") == 0))
|
||||
COMPLETE_WITH_CONST("IN");
|
||||
|
Reference in New Issue
Block a user