calloc/malloc return value checking

Jeff Blaine jblaine at kickflop.net
Fri Apr 23 09:03:23 EDT 2010


Just throwing this out there out of curiosity (learning).

I'm seeing a lot of MIT krb5 code using:

     blah = malloc(...);  /* or calloc() */
     if (blah == 0)

Is there an aversion to 'NULL' for some reason?




More information about the krbdev mailing list