at least handle null im_info & dont crash.
authorCarsten Haitzler <raster@rasterman.com>
Sat, 3 Sep 2011 04:47:50 +0000 (04:47 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sat, 3 Sep 2011 04:47:50 +0000 (04:47 +0000)
SVN revision: 63105

legacy/ecore/src/modules/immodules/xim/ecore_imf_xim.c

index 791fdabbc31248f47d1209d0a5fd90c835c27950..e9799b964c537b006e0665800eec22cf0cfba9e1 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