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