forked from enlightenment/efl
elm widget - fix possible null ptr access found by coverity
_propagate_event_legacy checked event_flags ptr for null then just derefs it anyway... so check everywhere. fixes CID 1379920
This commit is contained in:
parent
1dcac1853d
commit
dea4e5aa46
|
@ -1109,8 +1109,11 @@ _propagate_event_legacy(Eo *parent, const Efl_Event *event, Eo *obj, Elm_Event_C
|
|||
if (ecd->func((void *)ecd->data, parent, obj, type, event_info.any) ||
|
||||
(event_flags && ((*event_flags) & EVAS_EVENT_FLAG_ON_HOLD)))
|
||||
{
|
||||
if (prev_flags != *event_flags)
|
||||
efl_input_event_flags_set(event->info, *event_flags);
|
||||
if (event_flags)
|
||||
{
|
||||
if (prev_flags != *event_flags)
|
||||
efl_input_event_flags_set(event->info, *event_flags);
|
||||
}
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue