summaryrefslogtreecommitdiffstats
path: root/discover/parser-conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'discover/parser-conf.c')
-rw-r--r--discover/parser-conf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/parser-conf.c b/discover/parser-conf.c
index 94612c3..4bd2387 100644
--- a/discover/parser-conf.c
+++ b/discover/parser-conf.c
@@ -46,6 +46,9 @@ char *conf_strip_str(char *s)
if (!s)
return NULL;
+ if (!strlen(s))
+ return NULL;
+
while (*s == '"' || *s == '\'' || isspace(*s))
s++;
OpenPOWER on IntegriCloud