summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dbd0f7d)
raw | patch | inline | side by side (parent: dbd0f7d)
author | Yakov Lerner <iler.ml@gmail.com> | |
Tue, 9 May 2006 16:14:00 +0000 (16:14 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 9 May 2006 13:28:59 +0000 (06:28 -0700) |
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>
Signed-off-by: Yakov Lerner <iler.ml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
read-cache.c | patch | blob | history |
diff --git a/read-cache.c b/read-cache.c
index f97f92d90a6d6f8359dcb4c25988fe623fd4dd65..a917ab0cfe1547d1070f2567a41295c96f97b249 100644 (file)
--- a/read-cache.c
+++ b/read-cache.c
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++) {