sd-network: if a boolean is mising, we should just take it as false

That way, we can deprecate fields later on without problems
This commit is contained in:
Lennart Poettering
2014-07-17 01:42:26 +02:00
parent a2ba62c719
commit 8b9652a711
+1 -1
View 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);
}