diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:41:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:42:26 +0200 |
commit | 8b9652a711ea3cebfc607435d66590b4a18aac77 (patch) | |
tree | 77fc8ae83387ab051962ddcc80dcfa9ace7922c3 /src | |
parent | a2ba62c719224a4b47751623ca5e8b0333f49721 (diff) |
sd-network: if a boolean is mising, we should just take it as false
That way, we can deprecate fields later on without problems
Diffstat (limited to 'src')
-rw-r--r-- | src/network/sd-network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/sd-network.c b/src/network/sd-network.c index 317d087b98..1b7518fd94 100644 --- a/src/network/sd-network.c +++ b/src/network/sd-network.c @@ -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); } |