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 card10/firmware!425
parents 2525f133 d6faa03d
Branches
No related tags found
No related merge requests found
...@@ -379,7 +379,10 @@ int epic_config_get_boolean(const char *key, bool *value) ...@@ -379,7 +379,10 @@ int epic_config_get_boolean(const char *key, bool *value)
} }
char buf[MAX_LINE_LENGTH]; 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")) { if (!strcasecmp(buf, "true")) {
*value = true; *value = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment