Skip to content

Commit

Permalink
read-cache.c: use xcalloc() not calloc()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yakov Lerner authored and Junio C Hamano committed May 9, 2006
1 parent dbd0f7d commit 28cc4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion read-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 28cc4ab

Please sign in to comment.