mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-01 11:11:56 +00:00
Redo minor cleanup in new_rbtree
This commit is contained in:
parent
dfeb6b0403
commit
1418971085
@ -138,9 +138,9 @@ R_API bool r_crbtree_insert(RRBTree *tree, void *data, RRBComparator cmp, void *
|
||||
r_return_val_if_fail (tree && data && cmp, false);
|
||||
bool inserted = false;
|
||||
|
||||
if (tree->root == NULL) {
|
||||
if (!tree->root) {
|
||||
tree->root = _node_new (data, NULL);
|
||||
if (tree->root == NULL) {
|
||||
if (!tree->root) {
|
||||
return false;
|
||||
}
|
||||
inserted = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user