Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/avl.c
diff options
context:
space:
mode:
Diffstat (limited to 'avl.c')
-rw-r--r--avl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/avl.c b/avl.c
index 8d0bf65..79ea5c7 100644
--- a/avl.c
+++ b/avl.c
@@ -45,6 +45,7 @@
#include <string.h>
#include "avl.h"
+#include "assert.h"
#include "list.h"
/**
@@ -668,6 +669,7 @@ avl_delete_worker(struct avl_tree *tree, struct avl_node *node)
return;
}
+ assert(node->right);
node->right->parent = parent;
if (parent->left == node)