aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/libalgo/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/libalgo/btree.c b/src/common/libalgo/btree.c
index d3a030a..9ea4a15 100644
--- a/src/common/libalgo/btree.c
+++ b/src/common/libalgo/btree.c
@@ -216,7 +216,7 @@ void btree_remove_v(btree_t *t, const void* key, const void* val) {
} else if (c > 0) {
i->right = remove_aux(t, i->right, key, val);
return equilibrate(i);
- } else if (i->val == i) {
+ } else if (i->val == val) {
// remove item i
btree_item_t *new_i;