From f1e115dc1306368a291effa19b1ce1c8fc39615b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 14 Jan 2010 23:57:22 +0100 Subject: [PATCH] [btr] btr_node_status(): Node pointer should never be NULL. --- buffer_tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buffer_tree.c b/buffer_tree.c index 57f1398e..5571b433 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -790,8 +790,7 @@ int btr_node_status(struct btr_node *btrn, size_t min_iqs, { size_t iqs; - if (!btrn) - return 0; + assert(btrn); if (type != BTR_NT_LEAF) { if (btr_no_children(btrn)) return -E_BTR_NO_CHILD; -- 2.39.5