forked from enlightenment/efl
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
This commit is contained in:
parent
7417436526
commit
8e6e1860c3
|
@ -1939,6 +1939,7 @@ _efl_object_event_future_scheduler_get(const Eo *obj, Efl_Object_Data *pd, Efl_C
|
||||||
if (!array) return NULL;
|
if (!array) return NULL;
|
||||||
|
|
||||||
ext = _efl_object_extension_need(pd);
|
ext = _efl_object_extension_need(pd);
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(ext);
|
||||||
|
|
||||||
// First lookup for an existing scheduler that match the provided array
|
// First lookup for an existing scheduler that match the provided array
|
||||||
if (!ext->schedulers) ext->schedulers = eina_hash_pointer_new(_futures_cancel_cb);
|
if (!ext->schedulers) ext->schedulers = eina_hash_pointer_new(_futures_cancel_cb);
|
||||||
|
|
Loading…
Reference in New Issue