summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xplist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xplist.c b/src/xplist.c
index 44bb5e7..6e64427 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -353,6 +353,9 @@ static void node_to_xml(node_t* node, bytearray_t **outbuf, uint32_t depth)
353 str_buf_append(*outbuf, "\n", 1); 353 str_buf_append(*outbuf, "\n", 1);
354 354
355 if (isStruct) { 355 if (isStruct) {
356 if (node_data->type == PLIST_DICT) {
357 assert((node->children->count % 2) == 0);
358 }
356 node_iterator_t *ni = node_iterator_create(node->children); 359 node_iterator_t *ni = node_iterator_create(node->children);
357 node_t *ch; 360 node_t *ch;
358 while ((ch = node_iterator_next(ni))) { 361 while ((ch = node_iterator_next(ni))) {