Skip to content

Commit

Permalink
Redo minor cleanup in new_rbtree
Browse files Browse the repository at this point in the history
  • Loading branch information
condret committed Apr 23, 2022
1 parent dfeb6b0 commit 1418971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/util/new_rbtree.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1418971

Please sign in to comment.