Skip to content
Snippets Groups Projects

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

Merged schneider requested to merge schneider/config-get-bool-fix into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -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;
Loading