mirror of
https://github.com/postgres/postgres.git
synced 2025-09-06 13:46:51 +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:
@@ -491,7 +491,7 @@ get_typedef(char *name)
|
||||
{
|
||||
struct typedefs *this;
|
||||
|
||||
for (this = types; this && strcmp(this->name, name); this = this->next);
|
||||
for (this = types; this && strcmp(this->name, name) != 0; this = this->next);
|
||||
if (!this)
|
||||
mmerror(PARSE_ERROR, ET_FATAL, "unrecognized data type name \"%s\"", name);
|
||||
|
||||
|
Reference in New Issue
Block a user