X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=read-cache.c;h=a917ab0cfe1547d1070f2567a41295c96f97b249;hb=be0c7e069738fbb697b0719f2252107261c9340e;hp=f97f92d90a6d6f8359dcb4c25988fe623fd4dd65;hpb=207a1f3ce9894ad6fab59077b9cec1adc70ed6c5;p=git.git diff --git a/read-cache.c b/read-cache.c index f97f92d9..a917ab0c 100644 --- a/read-cache.c +++ b/read-cache.c @@ -552,7 +552,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++) {