
J.B.C.Engelen@...1578... schrieb:
... It's fairly traditional to use a NULL pointer to mean "not defined", so NULL pointer checks are quite standard and commonly used for controlling when certian logic should be invoked.
True, but in this case, I'm wondering whether it is better to do the check somewhere else. The function that tests for this NULL does nothing if it is NULL. Since it is a callback function (correct?) that is a reaction on pressing the OK button, maybe this shouldn't have been set as such in the first place.
I'll try to have a look into the other crash.
Johan
I totally agree that this NULL pointer check only prevents from crashing like try and catch block. I think that Teds commit still lacks in something (maybe some initialisation of variables?). But I am not familiar with this GTK functions...
Adib.