From 0d1337e9df9b0dfc4abccd6f831394219377e909 Mon Sep 17 00:00:00 2001 From: ellson Date: Sat, 11 Jun 2011 15:13:59 +0000 Subject: [PATCH] Fix #0001930 --- lib/gvc/gvplugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 3336201e1..cb8e2856e 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -362,6 +362,10 @@ char *gvplugin_list(GVC_t * gvc, api_t api, const char *str) if (api < 0) return NULL; + /* check for valid str */ + if (! str) + return NULL; + if (first) { agxbinit(&xb, 0, 0); first = 0; -- 2.40.0