From: Matthias Clasen Date: Sat, 15 Nov 2003 22:04:39 +0000 (+0000) Subject: Add a NULL check to be consistent with the other g_utf8_ functions. X-Git-Tag: GLIB_2_3_1~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fd4b6d674a25de76a44f4341521a60167ceb2bf;p=platform%2Fupstream%2Fglib.git Add a NULL check to be consistent with the other g_utf8_ functions. Sat Nov 15 23:00:57 2003 Matthias Clasen * glib/guniprop.c (g_utf8_casefold): Add a NULL check to be consistent with the other g_utf8_ functions. (#121618, Tim-Philipp Müller) --- diff --git a/ChangeLog b/ChangeLog index c179bc0..dd64052 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Nov 15 23:00:57 2003 Matthias Clasen + + * 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 * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c179bc0..dd64052 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Sat Nov 15 23:00:57 2003 Matthias Clasen + + * 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 * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index c179bc0..dd64052 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Sat Nov 15 23:00:57 2003 Matthias Clasen + + * 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 * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index c179bc0..dd64052 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Sat Nov 15 23:00:57 2003 Matthias Clasen + + * 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 * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index c179bc0..dd64052 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Sat Nov 15 23:00:57 2003 Matthias Clasen + + * 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 * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c179bc0..dd64052 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Sat Nov 15 23:00:57 2003 Matthias Clasen + + * 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 * tests/makefile.msc.in: Fix for MSVC build: Skip strtod-test, use diff --git a/glib/guniprop.c b/glib/guniprop.c index 8603a81..5d4c4f4 100644 --- a/glib/guniprop.c +++ b/glib/guniprop.c @@ -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) {