From b116838da31dc212c60f13821dfe87187731dc78 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Wed, 23 Jun 2010 12:17:29 +0200 Subject: [PATCH] Improve documentation for g_strcmp0() Be more explicit about the handling of two NULL pointers. https://bugzilla.gnome.org/show_bug.cgi?id=622480 --- glib/gtestutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/gtestutils.c b/glib/gtestutils.c index 3e964652e..31a4a5d20 100644 --- a/glib/gtestutils.c +++ b/glib/gtestutils.c @@ -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. *