Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sfk
on Nov 2, 2009
|
parent
|
context
|
favorite
| on:
Something simple I wish I learned 17 years ago
The change reverses the logic of the expression, so I would expect the program to stop working - regardless of the value of the null pointer.
JeremyStein
on Nov 3, 2009
[–]
Bah. You're right. I meant ptr == 0 was changed to !ptr.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: