Hacker News new | ask | show | jobs
by silentbicycle 4519 days ago
Excellent, thank you. Those also compile differently for me, so it probably appeared in a newer version of gcc.
1 comments

It's an optimization, it shows up at -O2.
Why put the if in at all then?

Regardless of optimisation, it will never be followed - it segfaults if NULL and returns normally if not.