ecore_wayland: Check for null inputs
authorBryce Harrington <bryce@osg.samsung.com>
Sat, 21 Mar 2015 02:06:58 +0000 (22:06 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Sat, 21 Mar 2015 02:07:21 +0000 (22:07 -0400)
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

index c0031bb..d9f2fd3 100644 (file)
@@ -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;