diff options
Diffstat (limited to 'zix/btree.c')
-rw-r--r-- | zix/btree.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zix/btree.c b/zix/btree.c index c02126a..3dc2d57 100644 --- a/zix/btree.c +++ b/zix/btree.c @@ -773,9 +773,8 @@ zix_btree_iter_equals(const ZixBTreeIter* const lhs, const ZixBTreeIter* const r { if (zix_btree_iter_is_end(lhs) && zix_btree_iter_is_end(rhs)) { return true; - } else if (zix_btree_iter_is_end(lhs) || zix_btree_iter_is_end(rhs)) { - return false; - } else if (!lhs || !rhs || lhs->level != rhs->level) { + } else if (zix_btree_iter_is_end(lhs) || zix_btree_iter_is_end(rhs) || + lhs->level != rhs->level) { return false; } |