forked from enlightenment/efl
elm/toolbar: Fix NULL dereference waiting to happen.
The macro returns NULL if it->prev is not valid. So we better check if prev is not NULL before accessing it. SVN revision: 81144
This commit is contained in:
parent
6ab7e4a2f1
commit
193e83033e
|
@ -57,7 +57,7 @@ _items_visibility_fix(Elm_Toolbar_Smart_Data *sd,
|
|||
if (it->separator)
|
||||
{
|
||||
prev = ELM_TOOLBAR_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev);
|
||||
it->prio.priority = prev->prio.priority;
|
||||
if (prev) it->prio.priority = prev->prio.priority;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue