One trap: If the gcc attribute_nonnull is still used for these same
functions, gcc can optimize away the NULL checks, rendering them useless.
I'd recommend also getting rid of the attribute_nonnull gcc checking. I
have posted about this at length in previous RT tickets, if you need more
background.
--
Andy Dougherty doughera at lafayette.edu