Re: (patch) calloc->xcalloc in read-cache.c
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 8, 2006, 20:54 UTC
- Message-ID
- <7vzmhsdyp1.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <f36b08ee0605081101w3dc3a60cof5a524e9b4a3f555@mail.gmail.com>
"Yakov Lerner" <iler.ml@gmail.com> writes:
Show 13 quoted lines
> --- read-cache.c.000 2006-05-08 15:13:57.000000000 +0000
> +++ read-cache.c 2006-05-08 15:15:35.000000000 +0000
> @@ -557,7 +557,7 @@
>
> 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++) {
>
> YakovWhile I do not mind hand generated patch, your mailer setting seems to be seriously broken.
Mind checking Documentation/SubmittingPatches and try again?