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:
2fb8901
)
gstrfuncs: Mention nullability in g_ascii_strcasecmp() documentation
author
Philip Withnall
<philip.withnall@collabora.co.uk>
Thu, 14 Nov 2013 18:06:32 +0000
(18:06 +0000)
committer
Philip Withnall
<philip.withnall@collabora.co.uk>
Thu, 14 Nov 2013 18:06:32 +0000
(18:06 +0000)
Like strcmp(), g_ascii_strcasecmp() requires that both of its parameters
be non-%NULL.
glib/gstrfuncs.c
patch
|
blob
|
history
diff --git
a/glib/gstrfuncs.c
b/glib/gstrfuncs.c
index
0925f3d
..
ad4132d
100644
(file)
--- a/
glib/gstrfuncs.c
+++ b/
glib/gstrfuncs.c
@@
-1761,6
+1761,8
@@
g_ascii_xdigit_value (gchar c)
* characters include all ASCII letters. If you compare two CP932
* strings using this function, you will get false matches.
*
+ * Both @s1 and @s2 must be non-%NULL.
+ *
* Return value: 0 if the strings match, a negative value if @s1 < @s2,
* or a positive value if @s1 > @s2.
**/