Add a NULL check to be consistent with the other g_utf8_ functions.
authorMatthias Clasen <maclas@gmx.de>
Sat, 15 Nov 2003 22:04:39 +0000 (22:04 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 15 Nov 2003 22:04:39 +0000 (22:04 +0000)
Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>

* glib/guniprop.c (g_utf8_casefold): Add a NULL check
to be consistent with the other g_utf8_ functions.  (#121618,
Tim-Philipp Müller)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/guniprop.c

index c179bc0..dd64052 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/guniprop.c (g_utf8_casefold): Add a NULL check
+       to be consistent with the other g_utf8_ functions.  (#121618,
+       Tim-Philipp Müller)
+
 2003-11-15  Tor Lillqvist  <tml@iki.fi>
 
        * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use
index c179bc0..dd64052 100644 (file)
@@ -1,3 +1,9 @@
+Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/guniprop.c (g_utf8_casefold): Add a NULL check
+       to be consistent with the other g_utf8_ functions.  (#121618,
+       Tim-Philipp Müller)
+
 2003-11-15  Tor Lillqvist  <tml@iki.fi>
 
        * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use
index c179bc0..dd64052 100644 (file)
@@ -1,3 +1,9 @@
+Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/guniprop.c (g_utf8_casefold): Add a NULL check
+       to be consistent with the other g_utf8_ functions.  (#121618,
+       Tim-Philipp Müller)
+
 2003-11-15  Tor Lillqvist  <tml@iki.fi>
 
        * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use
index c179bc0..dd64052 100644 (file)
@@ -1,3 +1,9 @@
+Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/guniprop.c (g_utf8_casefold): Add a NULL check
+       to be consistent with the other g_utf8_ functions.  (#121618,
+       Tim-Philipp Müller)
+
 2003-11-15  Tor Lillqvist  <tml@iki.fi>
 
        * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use
index c179bc0..dd64052 100644 (file)
@@ -1,3 +1,9 @@
+Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/guniprop.c (g_utf8_casefold): Add a NULL check
+       to be consistent with the other g_utf8_ functions.  (#121618,
+       Tim-Philipp Müller)
+
 2003-11-15  Tor Lillqvist  <tml@iki.fi>
 
        * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use
index c179bc0..dd64052 100644 (file)
@@ -1,3 +1,9 @@
+Sat Nov 15 23:00:57 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * glib/guniprop.c (g_utf8_casefold): Add a NULL check
+       to be consistent with the other g_utf8_ functions.  (#121618,
+       Tim-Philipp Müller)
+
 2003-11-15  Tor Lillqvist  <tml@iki.fi>
 
        * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use
index 8603a81..5d4c4f4 100644 (file)
@@ -945,6 +945,8 @@ g_utf8_casefold (const gchar *str,
   GString *result = g_string_new (NULL);
   const char *p;
 
+  g_return_val_if_fail (str != NULL, NULL);
+
   p = str;
   while ((len < 0 || p < str + len) && *p)
     {