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:
Bowon Ryu 2018-10-02 19:47:22 +09:00 committed by Jaeun Choi
parent 431c8cc090
commit 10e00e3ecc
1 changed files with 2 additions and 0 deletions

View File

@ -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,