Coverity: Check return value of strcmp
return value of strcmp is not checked in some branches.
@@ -3541,8 +3541,8 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, bool isData)
/* Set up OID mode too */
if (strcmp(te->desc, "TABLE") == 0 ||
- strcmp(te->desc, "EXTERNAL TABLE") ||
- strcmp(te->desc, "FOREIGN TABLE"))
+ strcmp(te->desc, "EXTERNAL TABLE") == 0 ||
+ strcmp(te->desc, "FOREIGN TABLE") == 0)
_setWithOids(AH, te);
/* Emit header comment for item */
