From 931db7f12edaf56e0eeeb7d5ddbfbed147931941 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Fri, 20 Mar 2015 22:06:58 -0400 Subject: [PATCH] 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 c0031bb110..d9f2fd3721 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;