From 68c1ac1568910037a224c301d5c871af73493c16 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 28 Feb 2020 02:37:11 +0900 Subject: [PATCH] conf-parser: fix line number in error message Fixes #14929. --- src/shared/conf-parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 318588cc1fd..657df0a517a 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -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, -- 2.47.3