From: Yakov Lerner Date: Tue, 9 May 2006 16:14:00 +0000 (+0000) Subject: read-cache.c: use xcalloc() not calloc() X-Git-Tag: v1.3.3~10 X-Git-Url: https://git.octo.it/?p=git.git;a=commitdiff_plain;h=28cc4ab4224164971a523e8a6c222b5ab2bae27d read-cache.c: use xcalloc() not calloc() Elsewhere we use xcalloc(); we should consistently do so. Signed-off-by: Yakov Lerner Signed-off-by: Junio C Hamano --- 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++) {