summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-12-17 14:38:19 +0000
committerAndy Williams <andy@andywilliams.me>2017-12-17 14:38:19 +0000
commita34aca27a0189f457adad26290c874590543e110 (patch)
tree4bf470343e600603e354bcff4a0a5bd209eeaf8c /src/lib
parent679d41fc3c43ba78e246dcbf16f8b7267d1082d7 (diff)
ecore: Additional safety for bad futures
Fixes T6519
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/ecore_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_events.c b/src/lib/ecore/ecore_events.c
index 2a123a58fe..49cacd1f07 100644
--- a/src/lib/ecore/ecore_events.c
+++ b/src/lib/ecore/ecore_events.c
@@ -119,6 +119,8 @@ static Eina_Bool
119ecore_future_dispatched(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) 119ecore_future_dispatched(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
120{ 120{
121 Ecore_Future_Schedule_Entry *entry = event; 121 Ecore_Future_Schedule_Entry *entry = event;
122 EINA_SAFETY_ON_NULL_RETURN_VAL(entry, EINA_FALSE);
123
122 entry->event = NULL; 124 entry->event = NULL;
123 entry->cb(entry->future, entry->value); 125 entry->cb(entry->future, entry->value);
124 return EINA_FALSE; 126 return EINA_FALSE;