discomfitor pushed a commit to branch master.

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

commit 931db7f12edaf56e0eeeb7d5ddbfbed147931941
Author: Bryce Harrington <br...@osg.samsung.com>
Date:   Fri Mar 20 22:06:58 2015 -0400

    ecore_wayland: Check for null inputs
    
    Summary:
    The other functions in this module check inputs; this one should as
    well.
    
    Reviewers: zmike
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2210
---
 src/lib/ecore_wayland/ecore_wl_input.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/ecore_wayland/ecore_wl_input.c 
b/src/lib/ecore_wayland/ecore_wl_input.c
index c0031bb..d9f2fd3 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -250,6 +250,8 @@ _ecore_wl_input_cursor_update(void *data)
    Ecore_Wl_Input *input = data;
    unsigned int delay;
 
+   if ((!input) || (!input->cursor)) return EINA_FALSE;
+
    cursor_image = input->cursor->images[input->cursor_current_index];
    if (!cursor_image) return ECORE_CALLBACK_RENEW;
 

-- 


Reply via email to