Commit c8553481 authored by schneider's avatar schneider
Browse files

fix(config): remove pointless check

parent c7802eea
......@@ -386,13 +386,9 @@ int epic_config_get_boolean(const char *key, bool *value)
return 0;
}
char buf[MAX_LINE_LENGTH + 1];
char buf[MAX_LINE_LENGTH];
epic_config_get_string(key, buf, MAX_LINE_LENGTH);
if (buf == NULL) {
return -ENOENT;
}
if (!strcmp(buf, "true")) {
*value = true;
return 0;
......
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