Re: (patch) calloc->xaclloc in read-cache.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Tuesday, May 9, 2006 - 12:14 pm

How about this.

--- read-cache.c.000	2006-05-09 15:27:56.000000000 +0000
+++ read-cache.c	2006-05-09 15:28:10.000000000 +0000
@@ -552,7 +552,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++) {

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: (patch) calloc->xaclloc in read-cache.c, , (Tue May 9, 12:14 pm)
Re: (patch) calloc-&gt;xaclloc in read-cache.c, Junio C Hamano, (Tue May 9, 9:26 am)