Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:25

"Yakov Lerner" [off-list ref] writes:
quoted hunk
--- 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++) {
Yakov
While I do not mind hand generated patch, your mailer setting
seems to be seriously broken.  

Mind checking Documentation/SubmittingPatches and try again?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help