projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6920e50
)
Improve documentation for g_strcmp0()
author
Milan Bouchet-Valat
<nalimilan@club.fr>
Wed, 23 Jun 2010 10:17:29 +0000
(12:17 +0200)
committer
Christian 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
patch
|
blob
|
history
diff --git
a/glib/gtestutils.c
b/glib/gtestutils.c
index
3e96465
..
31a4a5d
100644
(file)
--- 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.
*