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

fix(config): remove pointless check

parent c7802eea
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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