modules/everything: Fix dereference before null check
Fixes CID1039816 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
e9599c2597
commit
4b4b80bcb5
|
@ -1174,9 +1174,17 @@ _evry_selector_label_set(Evry_Selector *sel, const char *part, const char *label
|
||||||
static void
|
static void
|
||||||
_evry_selector_activate(Evry_Selector *sel, int slide)
|
_evry_selector_activate(Evry_Selector *sel, int slide)
|
||||||
{
|
{
|
||||||
Evry_Window *win = sel->win;
|
Evry_Window *win;
|
||||||
Evry_State *s;
|
Evry_State *s;
|
||||||
|
|
||||||
|
if (!sel)
|
||||||
|
{
|
||||||
|
ERR("selector == NULL");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
win = sel->win;
|
||||||
|
|
||||||
if (CUR_SEL)
|
if (CUR_SEL)
|
||||||
{
|
{
|
||||||
Evry_Selector *cur = CUR_SEL;
|
Evry_Selector *cur = CUR_SEL;
|
||||||
|
@ -1189,12 +1197,6 @@ _evry_selector_activate(Evry_Selector *sel, int slide)
|
||||||
_evry_list_win_hide(win);
|
_evry_list_win_hide(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sel)
|
|
||||||
{
|
|
||||||
ERR("selector == NULL");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
CUR_SEL = sel;
|
CUR_SEL = sel;
|
||||||
|
|
||||||
_evry_selector_signal_emit(sel, "e,state,selected");
|
_evry_selector_signal_emit(sel, "e,state,selected");
|
||||||
|
|
Loading…
Reference in New Issue