Skip to content
Snippets Groups Projects
Commit d6faa03d authored by schneider's avatar schneider
Browse files

fix(config): Correctly handle non-existent bool option

parent 2525f133
No related branches found
No related tags found
1 merge request!425fix(config): Correctly handle non-existent bool option
Pipeline #4947 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