Skip to content
Snippets Groups Projects
Commit 743c1c16 authored by rahix's avatar rahix
Browse files

Merge 'Correctly handle non-existent bool option'

See merge request !425
parents 2525f133 d6faa03d
No related branches found
No related tags found
1 merge request!425fix(config): Correctly handle non-existent bool option
Pipeline #4948 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment