Mon, 18 May 2015 20:32:29 +0200
fixed bug in ucx_avl_remove
ucx/avl.c | file | annotate | diff | comparison | revisions |
--- a/ucx/avl.c Mon May 18 20:17:16 2015 +0200 +++ b/ucx/avl.c Mon May 18 20:32:29 2015 +0200 @@ -201,6 +201,9 @@ ucx_avl_connect(tree, p, n->right ? n->right:n->left, n->key); } else { tree->root = n->right ? n->right : n->left; + if(tree->root) { + tree->root->parent = NULL; + } } alfree(tree->allocator, n); }