From 33c0e95335d1c0a48a01cfc9df5ff963d7ce73de Mon Sep 17 00:00:00 2001 From: ellson Date: Sun, 6 Jan 2008 16:28:48 +0000 Subject: [PATCH] janitor - simplify expression where gcc-4.3 warns "will always evaluate as 'true'" --- lib/gvc/gvplugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.50.1