projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba472b
)
[btr] btr_node_status(): Node pointer should never be NULL.
author
Andre Noll
<maan@systemlinux.org>
Thu, 14 Jan 2010 22:57:22 +0000
(23:57 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Thu, 14 Jan 2010 22:57:22 +0000
(23:57 +0100)
buffer_tree.c
patch
|
blob
|
history
diff --git
a/buffer_tree.c
b/buffer_tree.c
index 57f1398eeeb441662805b7b36b8c95adde986b78..5571b4338fd841343034892c3591080806691734 100644
(file)
--- 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;