2009-02-23 Paolo Borelli <pborelli@katamail.com>
* glib/gutf8.c (_g_utf8_make_valid):
sanity check the input paramter.
svn path=/trunk/; revision=7902
+2009-02-23 Paolo Borelli <pborelli@katamail.com>
+
+ * glib/gutf8.c (_g_utf8_make_valid):
+ sanity check the input paramter.
+
2009-02-23 Tor Lillqvist <tml@novell.com>
Bug 570501 - g_win32_get_system_data_dirs uses invalid conversion
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))