S
Simon Biber
Kenneth said:I've seen better "solutions" to this by printing "<nil>" for NULL "%s"
values. This makes the cause more obvious.
And it's easy to implement without actually dereferencing the given
pointer, so you can keep your useful core-dump behaviour for when the
program actually does try to dereference a null pointer.