diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-02 23:07:58 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-02 23:44:05 +0100 |
commit | 934ae16baf543af03f3f521277d14524ca772d17 (patch) | |
tree | 2c71fd536c9b911f2cfc7c749d844cb33bcb52ea /src/basic/proc-cmdline.c | |
parent | 19854865a877a3a4fa3d04550c15a99c0e1187ff (diff) |
proc-cmdline: return proper errors from shall_restore_state()
Let's not eat up errors in shall_restore_state(), but in the consumers
instead, just for the sake of keeping the library calls generic.
Diffstat (limited to 'src/basic/proc-cmdline.c')
-rw-r--r-- | src/basic/proc-cmdline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/proc-cmdline.c b/src/basic/proc-cmdline.c index dd91ce7dbc..778c994501 100644 --- a/src/basic/proc-cmdline.c +++ b/src/basic/proc-cmdline.c @@ -141,5 +141,5 @@ int shall_restore_state(void) { if (r == 0) return true; - return parse_boolean(value) != 0; + return parse_boolean(value); } |