From 57696cf126ced716c807f0bbc9ef6aa54e515f7d Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Mon, 10 May 2010 20:53:07 +0200 Subject: [PATCH] tree_alloc_node(): Support count > 1 for fast_alloc==false --- uct/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/tree.c b/uct/tree.c index ee2c4fc..fbac8dd 100644 --- a/uct/tree.c +++ b/uct/tree.c @@ -37,7 +37,7 @@ tree_alloc_node(struct tree *t, int count, bool fast_alloc, hash_t *hash) n = (struct tree_node *)(t->nodes + old_size); memset(n, 0, sizeof(*n)); } else { - n = calloc2(1, sizeof(*n)); + n = calloc2(count, sizeof(*n)); } if (hash) { -- 2.11.4.GIT