diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-03-01 16:44:02 +0700 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-03-01 16:44:02 +0700 |
commit | 6fa2c7e3b7228a4f772d907e11429099b3ddc9f5 (patch) | |
tree | 71d126fb02e8906b1fe7e0252102045872bcfb21 | |
parent | 32873cc94b20f50b1550150c6f0c9c59e07c0da2 (diff) | |
download | gtk+-6fa2c7e3b7228a4f772d907e11429099b3ddc9f5.tar.gz |
xim: Use NULL-safe string comparison
The locale string may be NULL.
-rw-r--r-- | gtk/gtkimcontextxim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimcontextxim.c b/gtk/gtkimcontextxim.c index c258df65c2..15e3cce131 100644 --- a/gtk/gtkimcontextxim.c +++ b/gtk/gtkimcontextxim.c @@ -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) { |