]> granicus.if.org Git - graphviz/commitdiff
Fix bug in dot_builtins: can't send NULL to strcasecmp
authorerg <devnull@localhost>
Sat, 5 Dec 2009 23:47:57 +0000 (23:47 +0000)
committererg <devnull@localhost>
Sat, 5 Dec 2009 23:47:57 +0000 (23:47 +0000)
lib/gvc/gvplugin.c

index 4eeffdb8c4ab74fbd2b6a82ccaa6d5bde139610f..8ce664d98345fbb79a12afab03615640b0e5b4f4 100644 (file)
@@ -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;