glib r7902 - in trunk: . glib
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7902 - in trunk: . glib
- Date: Mon, 23 Feb 2009 14:38:21 +0000 (UTC)
Author: pborelli
Date: Mon Feb 23 14:38:20 2009
New Revision: 7902
URL: http://svn.gnome.org/viewvc/glib?rev=7902&view=rev
Log:
2009-02-23 Paolo Borelli <pborelli katamail com>
* glib/gutf8.c (_g_utf8_make_valid):
sanity check the input paramter.
Modified:
trunk/ChangeLog
trunk/glib/gutf8.c
Modified: trunk/glib/gutf8.c
==============================================================================
--- trunk/glib/gutf8.c (original)
+++ trunk/glib/gutf8.c Mon Feb 23 14:38:20 2009
@@ -1833,11 +1833,13 @@
GString *string;
const gchar *remainder, *invalid;
gint remaining_bytes, valid_bytes;
-
+
+ g_return_val_if_fail (name != NULL, NULL);
+
string = NULL;
remainder = name;
remaining_bytes = strlen (name);
-
+
while (remaining_bytes != 0)
{
if (g_utf8_validate (remainder, remaining_bytes, &invalid))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]