From: erg Date: Sat, 5 Dec 2009 23:47:57 +0000 (+0000) Subject: Fix bug in dot_builtins: can't send NULL to strcasecmp X-Git-Tag: LAST_LIBGRAPH~32^2~1522 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64611154f1a7d3ad6d6c4bb4e586316b18af60fd;p=graphviz Fix bug in dot_builtins: can't send NULL to strcasecmp --- diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 4eeffdb8c..8ce664d98 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -145,6 +145,7 @@ static boolean gvplugin_activate(GVC_t * gvc, api_t api, while (*pnext) { if ( (strcasecmp(typestr, (*pnext)->typestr) == 0) && (strcasecmp(name, (*pnext)->package->name) == 0) + && ((*pnext)->package->path != 0) && (strcasecmp(path, (*pnext)->package->path) == 0)) { (*pnext)->typeptr = typeptr; return TRUE;