From 07805e4a8abf424a648fc6a585d4453badefe622 Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 3 Sep 2011 04:47:50 +0000 Subject: [PATCH] at least handle null im_info & dont crash. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63105 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/immodules/xim/ecore_imf_xim.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/immodules/xim/ecore_imf_xim.c b/src/modules/immodules/xim/ecore_imf_xim.c index 791fdab..e9799b9 100644 --- a/src/modules/immodules/xim/ecore_imf_xim.c +++ b/src/modules/immodules/xim/ecore_imf_xim.c @@ -925,6 +925,12 @@ get_ic(Ecore_IMF_Context *ctx) XIMStyle im_style = 0; XPoint spot = { 0, 0 }; char *name = NULL; + + if (!im_info) + { + EINA_LOG_WARN("Doesn't open XIM."); + return NULL; + } // supported styles #if 0 -- 2.7.4