Assert that root node is non-NULL.

This commit is contained in:
Michael Drake 2013-10-23 11:40:22 +01:00
parent df4975b8d4
commit 5cddb4ff3c

View File

@ -321,6 +321,8 @@ static nserror treeview_walk_internal(treeview_node *root, bool full,
bool skip_children = false;
nserror err;
assert(root != NULL);
node = root;
parent = node->parent;
next_sibling = node->next_sib;