devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ade7482ee2336d4016ffe17d8569a1b0bb261c70

commit ade7482ee2336d4016ffe17d8569a1b0bb261c70
Author: Chris Michael <[email protected]>
Date:   Fri Jan 16 10:35:06 2015 -0500

    ecore-wayland: Don't crash if we have no input->cursor_name
    
    Summary: If we are using a touchscreen, there will be no pointer and
    thus no cursor_name to use. Trap for that case by checking if
    input->cursor_name is valid.
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_wayland/ecore_wl_window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_window.c 
b/src/lib/ecore_wayland/ecore_wl_window.c
index 55c7097..1db8ed0 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -706,7 +706,7 @@ ecore_wl_window_cursor_from_name_set(Ecore_Wl_Window *win, 
const char *cursor_na
 
    eina_stringshare_replace(&win->cursor_name, cursor_name);
 
-   if (strcmp(input->cursor_name, win->cursor_name))
+   if ((input->cursor_name) && (strcmp(input->cursor_name, win->cursor_name)))
      ecore_wl_input_cursor_from_name_set(input, cursor_name);
 }
 

-- 


Reply via email to