child = NULL

This commit is contained in:
Liu Chao
2014-06-02 22:49:20 +08:00
parent 5b4dc5c435
commit 72ecbae5c6
+1 -1
View File
@@ -386,7 +386,7 @@ rb_erase_rebalance( LCUI_RBTreeNode *node, LCUI_RBTreeNode *parent,
int RBTree_Erase( LCUI_RBTree *rbt, int key )
{
unsigned char color;
LCUI_RBTreeNode *root, *child, *parent, *old, *left, *node;
LCUI_RBTreeNode *root, *child = NULL, *parent, *old, *left, *node;
root = rbt->root;
/* 查找要删除的结点 */