diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2009-04-22 14:07:14 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2009-04-22 14:07:14 +0000 |
commit | 57895cdc764809ad29336431ee6b43c68fe15f15 (patch) | |
tree | ee06066b1e128e876793d149c7f3c844851f69a8 /lib/libc/db/btree/bt_split.c | |
parent | cff0c03ef7b93d6ab09a8ce2ab009348e5c7aecd (diff) |
Notes
Diffstat (limited to 'lib/libc/db/btree/bt_split.c')
-rw-r--r-- | lib/libc/db/btree/bt_split.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/db/btree/bt_split.c b/lib/libc/db/btree/bt_split.c index dc2791762af0..94fa15317d8f 100644 --- a/lib/libc/db/btree/bt_split.c +++ b/lib/libc/db/btree/bt_split.c @@ -381,7 +381,7 @@ bt_page(t, h, lp, rp, skip, ilen) } /* Put the new left page for the split into place. */ - if ((l = (PAGE *)malloc(t->bt_psize)) == NULL) { + if ((l = (PAGE *)calloc(1, t->bt_psize)) == NULL) { mpool_put(t->bt_mp, r, 0); return (NULL); } |