From 8e6e1860c3a78304c645422edc3b4872f0f21ef8 Mon Sep 17 00:00:00 2001 From: Wonki Kim Date: Wed, 12 Feb 2020 16:47:33 +0900 Subject: [PATCH] eo: remove potentional NULL dereferencing Summary: this patch removes a potentional NULL dereferencing Reviewers: jsuya, Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11325 --- src/lib/eo/eo_base_class.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 9fd4d2b08b..097a4e0356 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -1939,6 +1939,7 @@ _efl_object_event_future_scheduler_get(const Eo *obj, Efl_Object_Data *pd, Efl_C if (!array) return NULL; ext = _efl_object_extension_need(pd); + EINA_SAFETY_ON_NULL_RETURN(ext); // First lookup for an existing scheduler that match the provided array if (!ext->schedulers) ext->schedulers = eina_hash_pointer_new(_futures_cancel_cb);