Fun with NULL pointers, part 2
Fun with NULL pointers, part 2
Posted Jul 21, 2009 22:04 UTC (Tue) by mjthayer (guest, #39183)Parent article: Fun with NULL pointers, part 2
Presumably if a NULL pointer can be a valid pointer under certain circumstances then checks for NULL to determine invalid pointers would be wrong under the same circumstances, and the right thing would be to avoid using pointers which have not been initialised to their final value. Note that gcc *can* spot and warn about that if the pointer is not initialised to NULL first.
