@matheusbsbs / matheus-bagliano / commits / 28cc4ab422
Fork 0

read-cache.c: use xcalloc() not calloc()

Elsewhere we use xcalloc(); we should consistently do so. Signed-off-by: Yakov Lerner <iler.ml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Yakov Lerner committed May 9, 2006 at 16:14 UTC 28cc4ab4224164971a523e8a6c222b5ab2bae27d
1 file changed +1 -1
read-cache.c
+1 -1
@@ -552,7 +552,7 @@ int read_cache(void)
552
553 active_nr = ntohl(hdr->hdr_entries);
554 active_alloc = alloc_nr(active_nr);
555 - active_cache = calloc(active_alloc, sizeof(struct cache_entry *));
555 + active_cache = xcalloc(active_alloc, sizeof(struct cache_entry *));
556
557 offset = sizeof(*hdr);
558 for (i = 0; i < active_nr; i++) {