diff --git a/src/conf.c b/src/conf.c index 7f94b65..257cafe 100644 --- a/src/conf.c +++ b/src/conf.c @@ -427,7 +427,7 @@ static int config_parse (struct config_s *conf, FILE * f) while(isspace(*p))p++; if(!*p) continue; q = p; - while(!isspace(*q))q++; + while(*q && !isspace(*q))q++; c = *q; *q = 0; e = config_directive_find(p, strlen(p));