devilhorns pushed a commit to branch master.

commit 61ef289fe4ad0d5e770c81b5f9b93c6ead457f77
Author: Chris Michael <[email protected]>
Date:   Sat May 4 12:30:02 2013 +0100

    Check for valid wayland compositor before trying to init desktop shell.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/wl_desktop_shell/e_mod_main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/wl_desktop_shell/e_mod_main.c 
b/src/modules/wl_desktop_shell/e_mod_main.c
index 792f9d1..43be87e 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -160,6 +160,9 @@ e_modapi_init(E_Module *m)
    E_Wayland_Input *input = NULL;
    Eina_List *l = NULL;
 
+   /* test for valid compositor */
+   if (!_e_wl_comp) return NULL;
+
    /* try to allocate space for the shell structure */
    if (!(shell = E_NEW(E_Wayland_Desktop_Shell, 1)))
      return NULL;

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2

Reply via email to