From: Andre Noll Date: Thu, 14 Jan 2010 22:57:22 +0000 (+0100) Subject: [btr] btr_node_status(): Node pointer should never be NULL. X-Git-Tag: v0.4.2~96 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f1e115dc1306368a291effa19b1ce1c8fc39615b [btr] btr_node_status(): Node pointer should never be NULL. --- 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;