Merge pull request #14964 from yuwata/conf-parser-fix-line-number

conf-parser: fix line number in error message
This commit is contained in:
Anita Zhang
2020-02-27 17:16:35 -08:00
committed by GitHub

View File

@@ -334,6 +334,8 @@ int config_parse(const char *unit,
return r;
}
line++;
l = skip_leading_chars(buf, WHITESPACE);
if (*l != '\0' && strchr(COMMENTS, *l))
continue;
@@ -390,7 +392,7 @@ int config_parse(const char *unit,
r = parse_line(unit,
filename,
++line,
line,
sections,
lookup,
table,