]> granicus.if.org Git - graphviz/commitdiff
janitor - simplify expression where gcc-4.3 warns "will always evaluate as 'true'"
authorellson <devnull@localhost>
Sun, 6 Jan 2008 16:28:48 +0000 (16:28 +0000)
committerellson <devnull@localhost>
Sun, 6 Jan 2008 16:28:48 +0000 (16:28 +0000)
lib/gvc/gvplugin.c

index 65674aac4644bad4b2af88fd4a404fc17267ba0a..216e299a131cee85607f08f019bf6ab6d0163b25 100644 (file)
@@ -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 */