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:
jp9000
2015-07-02 11:03:23 -07:00
parent 625ecda3dc
commit 5bcaa7b590

View File

@@ -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(&section->items, &name, &value);
if (!strref_is_empty(&value))
config_add_item(&section->items, &name, &value);
}
}