summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-12-11 12:14:22 +0100
committerGravatar Nikias Bassen2018-12-11 12:14:22 +0100
commit58334812f923fcf659d4a59ff32e1fe14787571d (patch)
treedef0b6f21916520e59336abf8326facc88dd20d4
parent5dde103ae1635db38630409da261acdba4afecc3 (diff)
downloadlibplist-58334812f923fcf659d4a59ff32e1fe14787571d.tar.gz
libplist-58334812f923fcf659d4a59ff32e1fe14787571d.tar.bz2
xplist: Fix segfault caused by recent changes in libcnary
-rw-r--r--src/xplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xplist.c b/src/xplist.c
index 739b5ab..d905b92 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -355,7 +355,7 @@ static void node_to_xml(node_t* node, bytearray_t **outbuf, uint32_t depth)
str_buf_append(*outbuf, "\n", 1);
if (isStruct) {
- if (node_data->type == PLIST_DICT) {
+ if (node_data->type == PLIST_DICT && node->children) {
assert((node->children->count % 2) == 0);
}
node_t *ch;