mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +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:
@@ -361,7 +361,7 @@ SearchStmtCache(const char *ecpgQuery)
|
||||
{
|
||||
if (stmtCacheEntries[entNo].stmtID[0]) /* check if entry is in use */
|
||||
{
|
||||
if (!strcmp(ecpgQuery, stmtCacheEntries[entNo].ecpgQuery))
|
||||
if (strcmp(ecpgQuery, stmtCacheEntries[entNo].ecpgQuery) == 0)
|
||||
break; /* found it */
|
||||
}
|
||||
++entNo; /* incr entry # */
|
||||
|
Reference in New Issue
Block a user