elm widget - event legacy propagation - remove coverity warning

fix CID 1379920 - event_flags is actually never NULL or undefined in
the function logic. it's always set to point to the specific event
flags field depending on struct type or the function will return
before using the pointer.
This commit is contained in:
Carsten Haitzler 2017-09-29 09:09:04 +09:00
parent 6867158eb3
commit 4a9d168ac3
1 changed files with 3 additions and 6 deletions

View File

@ -1107,13 +1107,10 @@ _propagate_event_legacy(Eo *parent, const Efl_Event *event, Eo *obj, Elm_Event_C
prev_flags = *event_flags;
if (ecd->func((void *)ecd->data, parent, obj, type, event_info.any) ||
(event_flags && ((*event_flags) & EVAS_EVENT_FLAG_ON_HOLD)))
((*event_flags) & EVAS_EVENT_FLAG_ON_HOLD))
{
if (event_flags)
{
if (prev_flags != *event_flags)
efl_input_event_flags_set(event->info, *event_flags);
}
if (prev_flags != *event_flags)
efl_input_event_flags_set(event->info, *event_flags);
return EINA_TRUE;
}