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

NULL check for malloc?

From
CLChristopher Li <git@chrisli.org>
Date
Apr 24, 2005, 14:03 UTC
Message-ID
<20050424140341.GA15158@64m.dyndns.org>

I notice that there are lots of malloc call without checking the return NULL pointer.

Should we just have some wrapper function for malloc just die if malloc fails?

Chris
Message 1 of 1 in “NULL check for malloc?”
  1. Christopher LiApr 24, 2005

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.