httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject malloc error checking
Date Thu, 12 Sep 1996 21:41:01 GMT
Hmmm... I've seen a few places where it's assumed that malloc() will
be successful. One particularly disturbing place is alloc.c where
if malloc_block()'s malloc fails, it simply returns NULL. Note that
new_block() doesn't check the return value.

Shouldn't we adjust things so if malloc()s fail, we perror and exit?
-- 
Jim Jagielski  << jim@jaguNET.com >>   |   "There is a time for laughing,
  **  jaguNET Access Services  **      |    and a time for not laughing,
      Email: info@jaguNET.com          |    and this is not one of them"
++    http://www.jaguNET.com/         +++      Voice/Fax: 410-931-3157       ++

Mime
View raw message