chiark / gitweb /
sd-network: if a boolean is mising, we should just take it as false
[elogind.git] / src / network / sd-network.c
index 317d087..1b7518f 100644 (file)
@@ -235,7 +235,7 @@ static int network_get_boolean(const char *key, unsigned index) {
         if (r < 0)
                 return r;
         else if (!s)
-                return -EIO;
+                return false;
 
         return parse_boolean(s);
 }