From: ellson Date: Sun, 6 Jan 2008 16:28:48 +0000 (+0000) Subject: janitor - simplify expression where gcc-4.3 warns "will always evaluate as 'true'" X-Git-Tag: LAST_LIBGRAPH~32^2~4907 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33c0e95335d1c0a48a01cfc9df5ff963d7ce73de;p=graphviz janitor - simplify expression where gcc-4.3 warns "will always evaluate as 'true'" --- diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 65674aac4..216e299a1 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -290,7 +290,7 @@ gvplugin_available_t *gvplugin_load(GVC_t * gvc, api_t api, char *str) dep = strchr(typ, ':'); if (dep) *dep++ = '\0'; - if (! typ || ! reqtyp || strcmp(typ, reqtyp)) + if (strcmp(typ, reqtyp)) continue; /* types empty or mismatched */ if (dep && reqdep && strcmp(dep, reqdep)) continue; /* dependencies not empty, but mismatched */