From d937fbbd97760d4d1a59dc0fa6f3000e57a96998 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 1 Aug 2011 01:18:14 +0200 Subject: [PATCH] conf-parser: properly handle known but not parsed assignments --- src/conf-parser.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/conf-parser.c b/src/conf-parser.c index 97087765..a99c7059 100644 --- a/src/conf-parser.c +++ b/src/conf-parser.c @@ -131,8 +131,12 @@ static int next_assignment( if (r < 0) return r; - if (func) - return func(filename, line, section, lvalue, ltype, rvalue, data, userdata); + if (r > 0) { + if (func) + return func(filename, line, section, lvalue, ltype, rvalue, data, userdata); + + return 0; + } /* Warn about unknown non-extension fields. */ if (!relaxed && !startswith(lvalue, "X-")) -- 2.39.5