From 0ef69585d8583cd86e53195313dd08f50a0c6019 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 27 Jun 2019 03:00:22 +0900 Subject: [PATCH] conf-parser: fix continuation handling Before this commit, empty lines cannot break continuation. The bug was introduced by 9adbfeb38ac101d6f73a033bb120d63513ffb240. Closes #12883. --- src/shared/conf-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 2df09edaf57..f45dd798b21 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -322,7 +322,8 @@ int config_parse(const char *unit, return r; } - if (strchr(COMMENTS, *skip_leading_chars(buf, WHITESPACE))) + l = skip_leading_chars(buf, WHITESPACE); + if (*l != '\0' && strchr(COMMENTS, *l)) continue; l = buf;