syslogd: do not segfault on parse error when using default config. Closes 5762

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2013-01-20 16:05:41 +01:00
parent 2cfcc9e9d7
commit 81fa999540

View File

@ -429,7 +429,9 @@ static void parse_syslogdcfg(const char *file)
return;
cfgerr:
bb_error_msg_and_die("error in '%s' at line %d", file, parser->lineno);
bb_error_msg_and_die("error in '%s' at line %d",
file ? file : "/etc/syslog.conf",
parser->lineno);
}
#endif