rbtree.c: fix uninitialized value.
This commit is contained in:
parent
6714397d10
commit
c37f720989
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ int rbtree_insert(rbtree *tree, const void *key) {
|
|||
/* iterator and parent */
|
||||
rbnode *p, *q;
|
||||
|
||||
int dir = 0, last;
|
||||
int dir = 0, last = 0;
|
||||
|
||||
if (!tree || !tree->cmp_fn)
|
||||
return 0;
|
||||
|
|
|
|||
Reference in a new issue