Commit 743c1c16 authored by Rahix's avatar Rahix
Browse files

Merge 'Correctly handle non-existent bool option'

See merge request !425
parents 2525f133 d6faa03d
Pipeline #4948 passed with stages
in 2 minutes and 1 second
......@@ -379,7 +379,10 @@ int epic_config_get_boolean(const char *key, bool *value)
}
char buf[MAX_LINE_LENGTH];
epic_config_get_string(key, buf, MAX_LINE_LENGTH);
ret = epic_config_get_string(key, buf, MAX_LINE_LENGTH);
if (ret < 0) {
return ret;
}
if (!strcasecmp(buf, "true")) {
*value = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment