]> granicus.if.org Git - graphviz/commitdiff
return empty string, instead of NULL, for empty lists of plugins
authorellson <devnull@localhost>
Tue, 18 Oct 2005 19:04:25 +0000 (19:04 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 19:04:25 +0000 (19:04 +0000)
lib/gvc/gvplugin.c

index 64a9ce02dad8a6fd1e8df304b277dbfed11be0a4..ee0d17c1c78273d4f10d9d39733212725c481f54 100644 (file)
@@ -323,6 +323,8 @@ const char *gvplugin_list(GVC_t * gvc, api_t api, char *str)
        }
     }
     free(s);
+    if (!buf)
+       buf = "";
     return buf;
 }