GNOME Bugzilla – Bug 622480
Improve documentation for g_strcmp0()
Last modified: 2010-06-23 13:08:23 UTC
It may seems obvious, but I had to check to code to be sure NULL == NULL. Of course, seems to hard to return somthing else, but better tell it explicitly. Most people will use plain strcmp() with hacks rather than read the code, if in doubt.
Created attachment 164380 [details] [review] Improve documentation for g_strcmp0() Be more explicit about the handling of two NULL pointers.
I agree it isn't obvious from the wording, thanks for the patch. Note fore the future that NULL needs to be written %NULL in gtk-doc comments.
Oops, indeed! The simpler the fix seems, the more you're likely to introduce mistakes... ;-)