elc_hoversel.c: use int_ret instead of ret because ret can be null.

This fixes coverity CID 1129609 and 1129610.
This commit is contained in:
Daniel Juyung Seo 2013-11-18 22:33:37 +09:00
parent d32e73b1c6
commit c70405bdde
1 changed files with 3 additions and 2 deletions

View File

@ -603,11 +603,12 @@ _elm_hoversel_smart_event(Eo *obj, void *_pd, va_list *list)
void *event_info = va_arg(*list, void *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
Eina_Bool int_ret = EINA_FALSE;
Evas_Event_Key_Down *ev = event_info;
Elm_Hoversel_Smart_Data *sd = _pd;
eo_do_super(obj, MY_CLASS, elm_wdg_event(src, type, event_info, ret));
if (*ret) return;
eo_do_super(obj, MY_CLASS, elm_wdg_event(src, type, event_info, &int_ret));
if (int_ret) return;
if (!sd || !sd->hover) return;
if (elm_widget_disabled_get(obj)) return;