summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorYakov Lerner <iler.ml@gmail.com>2006-05-09 16:14:00 +0000
committerJunio C Hamano <junkio@cox.net>2006-05-09 06:28:59 -0700
commit28cc4ab4224164971a523e8a6c222b5ab2bae27d (patch)
treeff12a8ca1685e4adce6060df5feb7388eb883648 /read-cache.c
parentdbd0f7d3221fbf8e9943a114c11e5b5e5fc0c201 (diff)
downloadgit-28cc4ab4224164971a523e8a6c222b5ab2bae27d.tar.gz
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>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index f97f92d90a..a917ab0cfe 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++) {