mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
sanity check the input paramter.
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
This commit is contained in:
parent
450b6fff14
commit
e1b7a25342
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -1834,6 +1834,8 @@ _g_utf8_make_valid (const gchar *name)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user