projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2ba62c
)
sd-network: if a boolean is mising, we should just take it as false
author
Lennart Poettering
<lennart@poettering.net>
Wed, 16 Jul 2014 23:41:03 +0000
(
01:41
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 16 Jul 2014 23:42:26 +0000
(
01:42
+0200)
That way, we can deprecate fields later on without problems
src/network/sd-network.c
patch
|
blob
|
history
diff --git
a/src/network/sd-network.c
b/src/network/sd-network.c
index
317d087
..
1b7518f
100644
(file)
--- 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);
}