mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
xim: Use NULL-safe string comparison
The locale string may be NULL.
This commit is contained in:
parent
32873cc94b
commit
6fa2c7e3b7
@ -409,7 +409,7 @@ get_im (GdkWindow *client_window,
|
||||
{
|
||||
GtkXIMInfo *tmp_info = tmp_list->data;
|
||||
if (tmp_info->display == display &&
|
||||
strcmp (tmp_info->locale, locale) == 0)
|
||||
g_strcmp0 (tmp_info->locale, locale) == 0)
|
||||
{
|
||||
if (tmp_info->im)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user