Prevent null pointer dereference

This commit is contained in:
twinaphex 2016-10-26 09:55:09 +02:00
parent 45688b2a9d
commit 053208676f

View File

@ -537,7 +537,7 @@ config_file_t *config_file_new_from_string(const char *from_string)
return NULL;
}
if (line)
if (line && conf)
{
if (parse_line(conf, list, line))
{