From 8b6526eb7ae0562dc3a2d5d1fd6d9d61a8759828 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 12 May 2017 12:08:32 -0400 Subject: [PATCH] ecore-wl2: add safety check in ecore_wl2_display_inputs_get() ensure this is not called on server displays --- src/lib/ecore_wl2/ecore_wl2_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c index 2cf0ae0..dbcae6e 100644 --- a/src/lib/ecore_wl2/ecore_wl2_display.c +++ b/src/lib/ecore_wl2/ecore_wl2_display.c @@ -947,6 +947,7 @@ EAPI Eina_Iterator * ecore_wl2_display_inputs_get(Ecore_Wl2_Display *display) { EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL); + EINA_SAFETY_ON_TRUE_RETURN_VAL(display->pid, NULL); return eina_inlist_iterator_new(display->inputs); } -- 2.7.4