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) ...@@ -1179,8 +1179,8 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist, uint32_t depth)
} else { } else {
switch (plist_get_node_type(*plist)) { switch (plist_get_node_type(*plist)) {
case PLIST_DICT: case PLIST_DICT:
if (!keyname || *keyname == '\0') { if (!keyname) {
PLIST_XML_ERR("missing or empty key name while adding dict item\n"); PLIST_XML_ERR("missing key name while adding dict item\n");
ctx->err++; ctx->err++;
break; 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