From: raster Date: Sat, 3 Sep 2011 04:47:50 +0000 (+0000) Subject: at least handle null im_info & dont crash. X-Git-Tag: build/2012-07-04.173327~876 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07805e4a8abf424a648fc6a585d4453badefe622;p=profile%2Fivi%2Fecore.git 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 --- 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