forked from enlightenment/enlightenment
Fix klockwork issue: NULL pointer may be dereferenced:
Don't call e_comp_win_effect_set unless we have a valid pager window Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
dafe0b94d2
commit
2047bac4b0
|
@ -2196,7 +2196,7 @@ _pager_drop_cb_drop(void *data, const char *type, void *event_info)
|
||||||
e_border_hide(bd, 2);
|
e_border_hide(bd, 2);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (pd->desk != bd->desk)
|
if ((pd->desk != bd->desk) && (pw))
|
||||||
e_comp_win_effect_set(pw->border->cw, NULL);
|
e_comp_win_effect_set(pw->border->cw, NULL);
|
||||||
}
|
}
|
||||||
e_border_desk_set(bd, pd->desk);
|
e_border_desk_set(bd, pd->desk);
|
||||||
|
|
Loading…
Reference in New Issue