diff options
Diffstat (limited to 'discover')
-rw-r--r-- | discover/parser-conf.c | 3 |
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++; |