From 8b9652a711ea3cebfc607435d66590b4a18aac77 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 Jul 2014 01:41:03 +0200 Subject: sd-network: if a boolean is mising, we should just take it as false That way, we can deprecate fields later on without problems --- src/network/sd-network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network') 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); } -- cgit v1.2.3-54-g00ecf