summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Lerner <iler.ml@gmail.com>2006-05-09 16:14:00 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-09 13:28:59 (GMT)
commit28cc4ab4224164971a523e8a6c222b5ab2bae27d (patch)
treeff12a8ca1685e4adce6060df5feb7388eb883648
parentdbd0f7d3221fbf8e9943a114c11e5b5e5fc0c201 (diff)
downloadgit-28cc4ab4224164971a523e8a6c222b5ab2bae27d.zip
git-28cc4ab4224164971a523e8a6c222b5ab2bae27d.tar.gz
git-28cc4ab4224164971a523e8a6c222b5ab2bae27d.tar.bz2
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>
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index f97f92d..a917ab0 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++) {