mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 00:16:15 +01:00
Handling U+0000 explicitely to avoid collision with other cases
Fix issue #135
This commit is contained in:
parent
a1d5395f10
commit
48d65634a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user