chiark / gitweb /
conf-parser: properly handle known but not parsed assignments
authorLennart Poettering <lennart@poettering.net>
Sun, 31 Jul 2011 23:18:14 +0000 (01:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 31 Jul 2011 23:18:14 +0000 (01:18 +0200)
src/conf-parser.c

index 9708776..a99c705 100644 (file)
@@ -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-"))