Assert target node is non-NULL.

This commit is contained in:
Michael Drake 2013-10-22 15:22:42 +01:00
parent 3a35294a0e
commit 441e0dcbed

View File

@ -2708,6 +2708,7 @@ static bool treeview_set_move_indicator(treeview *tree, bool need_redraw,
assert(tree != NULL);
assert(tree->root != NULL);
assert(tree->root->children != NULL);
assert(target != NULL);
if (target->flags & TREE_NODE_SELECTED) {
/* Find top selected ancestor */