devilhorns pushed a commit to branch master.

commit 9103b7e2e341cb2d6df9f0b36adced8f458377e9
Author: Chris Michael <[email protected]>
Date:   Mon Jul 8 09:21:33 2013 +0100

    Check the return of ecore_x_init and error out if that fails.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/ecore_imf/xim/ecore_imf_xim.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/modules/ecore_imf/xim/ecore_imf_xim.c 
b/src/modules/ecore_imf/xim/ecore_imf_xim.c
index 224ee1d..71c9fc0 100644
--- a/src/modules/ecore_imf/xim/ecore_imf_xim.c
+++ b/src/modules/ecore_imf/xim/ecore_imf_xim.c
@@ -767,7 +767,12 @@ _ecore_imf_xim_init(void)
 
    DBG(" ");
 
-   ecore_x_init(NULL);
+   if (!ecore_x_init(NULL))
+     {
+        eina_shutdown();
+        return EINA_FALSE;
+     }
+
    ecore_imf_module_register(&xim_info,
                              xim_imf_module_create,
                              xim_imf_module_exit);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to