mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 19:54:05 +02:00
Handling U+0000 explicitely to avoid collision with other cases
Fix issue #135
This commit is contained in:
@@ -623,6 +623,12 @@ gunichar
|
||||
g_unichar_totitle (gunichar c)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
/* We handle U+0000 explicitely because some elements in
|
||||
* title_table[i][1] may be null. */
|
||||
if (c == 0)
|
||||
return c;
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (title_table); ++i)
|
||||
{
|
||||
if (title_table[i][0] == c || title_table[i][1] == c
|
||||
|
Reference in New Issue
Block a user