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
This commit is contained in:
Bryce Harrington 2015-03-20 22:06:58 -04:00 committed by Mike Blumenkrantz
parent 69e827ef0c
commit 931db7f12e
1 changed files with 2 additions and 0 deletions

View 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;