Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Lerner <iler.ml@gmail.com>2006-05-09 20:14:00 +0400
committerJunio C Hamano <junkio@cox.net>2006-05-09 17:28:59 +0400
commit28cc4ab4224164971a523e8a6c222b5ab2bae27d (patch)
treeff12a8ca1685e4adce6060df5feb7388eb883648
parentdbd0f7d3221fbf8e9943a114c11e5b5e5fc0c201 (diff)
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 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++) {