@@ -174,7 +174,7 @@ static int parse_line(
|
||||
if (!*l)
|
||||
return 0;
|
||||
|
||||
if (strchr(COMMENTS "\n", *l))
|
||||
if (*l == '\n')
|
||||
return 0;
|
||||
|
||||
include = first_word(l, ".include");
|
||||
@@ -327,6 +327,9 @@ int config_parse(const char *unit,
|
||||
return r;
|
||||
}
|
||||
|
||||
if (strchr(COMMENTS, *buf))
|
||||
continue;
|
||||
|
||||
l = buf;
|
||||
if (!(flags & CONFIG_PARSE_REFUSE_BOM)) {
|
||||
char *q;
|
||||
|
||||
Reference in New Issue
Block a user