Commit 02e9c0a5 authored by Nikias Bassen's avatar Nikias Bassen

xplist: Allow empty keys in dictionaries

parent 7946f2f0
......@@ -1179,8 +1179,8 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist, uint32_t depth)
} else {
switch (plist_get_node_type(*plist)) {
case PLIST_DICT:
if (!keyname || *keyname == '\0') {
PLIST_XML_ERR("missing or empty key name while adding dict item\n");
if (!keyname) {
PLIST_XML_ERR("missing key name while adding dict item\n");
ctx->err++;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment