On Thu, 2009-12-17 at 21:44 +0100, Carsten Breuer wrote: > Hi all, > > > after finding out, that malloc come back with NULL > even on linux (where people says here, it don't), > im starting to loose interest in the hole thing. > > So what should we do? > > I think now, that all this arguments not to check > malloc result is academical and some arguments are not > even true.
I believe the actual argument against NULL checks was in the context of NULL pointers passed into API functions. All returns from malloc should be checked for NULL. I will come to the house of anyone who says otherwise with a 2"x4" clue club and knock them over the head with it. If that fails, I will go for their kneecaps. --Z _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development