libobs/util: Do not add empty config file values
This allows config file values to defer to their defaults instead of being null.
This commit is contained in:
@@ -165,7 +165,8 @@ static void config_parse_section(struct config_section *section,
|
||||
strref_clear(&value);
|
||||
config_parse_string(lex, &value, 0);
|
||||
|
||||
config_add_item(§ion->items, &name, &value);
|
||||
if (!strref_is_empty(&value))
|
||||
config_add_item(§ion->items, &name, &value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user