From 4db766926fbd31199fd47d10d4a25d9089ea735f Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 24 Oct 2013 23:47:11 +0200 Subject: [PATCH] Don't try to parse empty lines. --- conf/config_file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/config_file.c b/conf/config_file.c index df9113175b..71e4e339f8 100644 --- a/conf/config_file.c +++ b/conf/config_file.c @@ -267,6 +267,9 @@ static char *strip_comment(char *str) static bool parse_line(config_file_t *conf, struct config_entry_list *list, char *line) { + if (!*line) + return false; + char *comment = strip_comment(line); // Starting line with # and include includes config files. :)