Commit 58334812 authored by Nikias Bassen's avatar Nikias Bassen

xplist: Fix segfault caused by recent changes in libcnary

parent 5dde103a
......@@ -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;
......
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