Commit 9007c53faecf51be7f166172682008d16f7d617a

Russell Belfer 2013-05-27T16:45:22

Fixing unwrapped calloc

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/delta.c b/src/delta.c
index 3252dbf..b3435ba 100644
--- a/src/delta.c
+++ b/src/delta.c
@@ -168,7 +168,7 @@ git_delta_create_index(const void *buf, unsigned long bufsize)
 	memset(hash, 0, hsize * sizeof(*hash));
 
 	/* allocate an array to count hash entries */
-	hash_count = calloc(hsize, sizeof(*hash_count));
+	hash_count = git__calloc(hsize, sizeof(*hash_count));
 	if (!hash_count) {
 		git__free(index);
 		return NULL;