forked from enlightenment/efl
efl_page_transition_scroll: fix warning the dereference before null check
Summary: if target is null, then terminate the function because it is not intended. Test Plan: N/A Reviewers: eunue Reviewed By: eunue Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7127
This commit is contained in:
parent
431c8cc090
commit
10e00e3ecc
|
@ -405,6 +405,8 @@ _efl_page_transition_scroll_curr_page_change(Eo *obj EINA_UNUSED,
|
|||
}
|
||||
pi->pos = pi->id - (pd->side_page_num + 1);
|
||||
|
||||
if (!target) return;
|
||||
|
||||
EINA_RECTANGLE_SET(&pi->temp,
|
||||
target->geometry.x,
|
||||
target->geometry.y,
|
||||
|
|
Loading…
Reference in New Issue