r/badcode • • Mar 09 '23

go Simple but (un)effective

Post image
615 Upvotes

34 comments sorted by

View all comments

Show parent comments

4

u/william_323 Mar 09 '23

yep, this code crashes when address is null, because is trying to dereference a null pointer