Fixing unwrapped calloc

This commit is contained in:
Russell Belfer 2013-05-27 16:45:22 -07:00
parent 8baca134cc
commit 9007c53fae

View File

@ -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;