git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
YLYakov Lerner <iler.ml@gmail.com>
Date
May 8, 2006, 18:01 UTC
Message-ID
<f36b08ee0605081101w3dc3a60cof5a524e9b4a3f555@mail.gmail.com>

--- 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
Next: Junio C Hamano
Message 1 of 2 in “(patch) calloc->xcalloc in read-cache.c”
  1. Yakov LernerMay 8, 2006
  2. Junio C HamanoMay 8, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.