]> err.no Git - systemd/commitdiff
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 970877650d642a269e27c8b2a28266c671646410..a99c70596b0a52eb6aeeb7bc78d5af6691a5f232 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-"))