summaryrefslogtreecommitdiff
path: root/src/network/sd-network.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-17 01:41:03 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-17 01:42:26 +0200
commit8b9652a711ea3cebfc607435d66590b4a18aac77 (patch)
tree77fc8ae83387ab051962ddcc80dcfa9ace7922c3 /src/network/sd-network.c
parenta2ba62c719224a4b47751623ca5e8b0333f49721 (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/network/sd-network.c')
-rw-r--r--src/network/sd-network.c2
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);
}