X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=read-cache.c;h=ed0da38e07cdb3d0a05a12bdebf10d833e53bd08;hb=78bc2e1552ed6e2829c2ffac83a69bea6ac26ee8;hp=1f71d125780fbaecf613f8b979fcc04b1b630c97;hpb=71c1783c239859c1d19381b3c7859e028262c2b4;p=git.git diff --git a/read-cache.c b/read-cache.c index 1f71d1257..ed0da38e0 100644 --- a/read-cache.c +++ b/read-cache.c @@ -583,7 +583,7 @@ int read_cache(void) active_nr = ntohl(hdr->hdr_entries); active_alloc = alloc_nr(active_nr); - active_cache = calloc(active_alloc, sizeof(struct cache_entry *)); + active_cache = xcalloc(active_alloc, sizeof(struct cache_entry *)); offset = sizeof(*hdr); for (i = 0; i < active_nr; i++) {