gstrfuncs: Mention nullability in g_ascii_strcasecmp() documentation
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 14 Nov 2013 18:06:32 +0000 (18:06 +0000)
committerPhilip 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

index 0925f3d..ad4132d 100644 (file)
@@ -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 &lt; @s2,
  *   or a positive value if @s1 &gt; @s2.
  **/