From: Denis Vlasenko Date: Wed, 22 Apr 2009 13:52:22 +0000 (-0000) Subject: httpd: allow empty lines in conf file X-Git-Tag: 1_15_0~290 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=00643ca5206c7000b6820b2274e01ffa5354ef19;p=oweals%2Fbusybox.git httpd: allow empty lines in conf file --- diff --git a/networking/httpd.c b/networking/httpd.c index 243d76f94..794a39ea0 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -546,9 +546,11 @@ static void parse_conf(const char *path, int flag) } *p = '\0'; strlen_buf = p - buf; + if (strlen_buf == 0) + continue; } - /* empty or strange line? */ + /* strange line? */ if (after_colon == NULL || *after_colon == '\0') goto config_error;