mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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:
@ -364,7 +364,7 @@ StringAt(metastring *s, int start, int length,...)
|
||||
if (*test && (strncmp(pos, test, length) == 0))
|
||||
return 1;
|
||||
}
|
||||
while (strcmp(test, ""));
|
||||
while (strcmp(test, "") != 0);
|
||||
|
||||
va_end(ap);
|
||||
|
||||
|
Reference in New Issue
Block a user