X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=read-cache.c;h=ed0da38e07cdb3d0a05a12bdebf10d833e53bd08;hb=aedb8995f841949ce29e05ea7e5c03c2d5466089;hp=1f71d125780fbaecf613f8b979fcc04b1b630c97;hpb=ac92095ff2c47731ba9a2a7779cd797b973ffc74;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++) {