summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2019-02-13 21:22:59 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2019-02-14 14:23:42 +0900
commitdea75d0f3283f31751e577925e81758836c10b70 (patch)
treefaa70efd57e0c60e78eb3a966682205b43e33a7d
parent63cbdd300802131a1e605a5dc50b9a1316ad080f (diff)
efl_page_transition_scroll: avoid explicit null dereference
-rw-r--r--src/lib/elementary/efl_page_transition_scroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_page_transition_scroll.c b/src/lib/elementary/efl_page_transition_scroll.c
index 432ada89ea..bb1ee08054 100644
--- a/src/lib/elementary/efl_page_transition_scroll.c
+++ b/src/lib/elementary/efl_page_transition_scroll.c
@@ -415,7 +415,7 @@ _efl_page_transition_scroll_curr_page_change(Eo *obj EINA_UNUSED,
415 pi->id = (pi->id - 1 + pd->page_info_num) % pd->page_info_num; 415 pi->id = (pi->id - 1 + pd->page_info_num) % pd->page_info_num;
416 target = pi->prev; 416 target = pi->prev;
417 } 417 }
418 else if (diff == -1) 418 else
419 { 419 {
420 pi->id = (pi->id + 1) % pd->page_info_num; 420 pi->id = (pi->id + 1) % pd->page_info_num;
421 target = pi->next; 421 target = pi->next;
@@ -443,7 +443,7 @@ _efl_page_transition_scroll_curr_page_change(Eo *obj EINA_UNUSED,
443 pd->head = pd->head->next; 443 pd->head = pd->head->next;
444 pd->tail = pd->tail->next; 444 pd->tail = pd->tail->next;
445 } 445 }
446 else if (diff == -1) 446 else
447 { 447 {
448 pd->head = pd->head->prev; 448 pd->head = pd->head->prev;
449 pd->tail = pd->tail->prev; 449 pd->tail = pd->tail->prev;