summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-01-02 00:18:24 +0100
committerGravatar Nikias Bassen2017-01-02 00:18:24 +0100
commit02e9c0a590a27b3a98da03f3d7bfcf25621ff7fc (patch)
tree2cfe57b64a5b6f18cc6b5aeda0be51befc4bf693 /src/xplist.c
parent7946f2f0550251b1e876662c6f31bf6190c9f3bc (diff)
downloadlibplist-02e9c0a590a27b3a98da03f3d7bfcf25621ff7fc.tar.gz
libplist-02e9c0a590a27b3a98da03f3d7bfcf25621ff7fc.tar.bz2
xplist: Allow empty keys in dictionaries
Diffstat (limited to 'src/xplist.c')
-rw-r--r--src/xplist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xplist.c b/src/xplist.c
index d15f52d..ddd962e 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -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;
}