Re:What Every C Programmer Should Know About Undefined Behav...
by panic on Thursday May 12, 2011 @12:39PM
(#2541212)
Check p before using it. The issue is when you have code like the following, where the behavior of the first statement is only defined when the condition in the second is false:
The fix is to stop dereferencing p before you know whether it's NULL or not:
[ Parent
| on HN ]
There are no comments on this comment yet.