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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user