From 58334812f923fcf659d4a59ff32e1fe14787571d Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 11 Dec 2018 12:14:22 +0100 Subject: xplist: Fix segfault caused by recent changes in libcnary --- src/xplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1-32-gdbae