aboutsummaryrefslogtreecommitdiff
path: root/object-refs.c
diff options
context:
space:
mode:
authorJonas Fonseca <fonseca@diku.dk>2006-08-28 02:26:07 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-27 20:49:43 -0700
commitb3c952f8386cebe12fc95227866683bb1cec99a9 (patch)
tree498eb8627f4841e3a9bb79feebd6732244dc2b51 /object-refs.c
parentc470701a98700533024b1864b789d4fc17e5e823 (diff)
downloadgit-b3c952f8386cebe12fc95227866683bb1cec99a9.tar.gz
git-b3c952f8386cebe12fc95227866683bb1cec99a9.tar.xz
Use xcalloc instead of calloc
Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'object-refs.c')
-rw-r--r--object-refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object-refs.c b/object-refs.c
index b1b806585..b0034e4b2 100644
--- a/object-refs.c
+++ b/object-refs.c
@@ -30,7 +30,7 @@ static void grow_refs_hash(void)
int new_hash_size = (refs_hash_size + 1000) * 3 / 2;
struct object_refs **new_hash;
- new_hash = calloc(new_hash_size, sizeof(struct object_refs *));
+ new_hash = xcalloc(new_hash_size, sizeof(struct object_refs *));
for (i = 0; i < refs_hash_size; i++) {
struct object_refs *ref = refs_hash[i];
if (!ref)