gpt-auto-generator: properly ignore value

A negative return code was treated as a true value.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-11-23 20:01:40 -05:00
parent 9a20fcbcd1
commit 8086ffacdb

View File

@@ -680,8 +680,8 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
r = parse_boolean(value);
if (r < 0)
log_warning("Failed to parse gpt-auto switch %s. Ignoring.", value);
arg_enabled = r;
else
arg_enabled = r;
} else if (streq(key, "root") && value) {