threads / discuss / 291

NULL check for malloc?

Subject: NULL check for malloc?

## tl;dr

One message between Apr 24, 2005 and Apr 24, 2005.

replies: 0people: 1as markdown or json

Christopher Li· Apr 24, 2005, 14:03 UTC · lore

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

← back to recent threads