at least handle null im_info & dont crash.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 3 Sep 2011 04:47:50 +0000 (04:47 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 3 Sep 2011 04:47:50 +0000 (04:47 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@63105 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/immodules/xim/ecore_imf_xim.c

index 791fdab..e9799b9 100644 (file)
@@ -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