Re:Once upon a time, memory allocators made sense
by revelation on Monday January 18, 2016 @03:38PM
(#10926746)
Because checking for this case actually makes the logic in every piece of code more difficult, since you now have to account for the edge case. This is superfluous, because in the edge case nothing bad was going to happen, anyway; a correct program wouldn't ever dereference the return value, and an incorrect program is incorrect regardless of the behavior of malloc here.
[ Parent
| on HN ]
There are no comments on this comment yet.