Git development
 help / color / mirror / Atom feed
* (patch) calloc->xcalloc in read-cache.c
@ 2006-05-08 18:01 Yakov Lerner
  2006-05-08 20:54 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Yakov Lerner @ 2006-05-08 18:01 UTC (permalink / raw)
  To: git

--- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-08 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-08 18:01 (patch) calloc->xcalloc in read-cache.c Yakov Lerner
2006-05-08 20:54 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox