Improve documentation for g_strcmp0()
authorMilan Bouchet-Valat <nalimilan@club.fr>
Wed, 23 Jun 2010 10:17:29 +0000 (12:17 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 23 Jun 2010 12:35:42 +0000 (14:35 +0200)
Be more explicit about the handling of two NULL pointers.

https://bugzilla.gnome.org/show_bug.cgi?id=622480

glib/gtestutils.c

index 3e96465..31a4a5d 100644 (file)
@@ -1429,6 +1429,7 @@ g_assertion_message_error (const char     *domain,
  *
  * Compares @str1 and @str2 like strcmp(). Handles %NULL 
  * gracefully by sorting it before non-%NULL strings.
+ * Comparing two %NULL pointers returns 0.
  *
  * Returns: -1, 0 or 1, if @str1 is <, == or > than @str2.
  *