elc_naviframe.c: Check value before dereferencing it.

This fixes coverity CID 1099698.
This commit is contained in:
Daniel Juyung Seo 2013-09-30 22:16:34 +09:00
parent e756f97dae
commit cec2f74648
1 changed files with 1 additions and 1 deletions

View File

@ -1283,7 +1283,7 @@ _elm_naviframe_smart_focus_next(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
if (ret) *ret = int_ret;
end:
if (!*ret)
if (ret && !*ret)
{
*next = obj;
*ret = !elm_widget_focus_get(obj);