summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-09-26 17:59:49 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-09-26 17:59:49 -0400
commit4a3b4e3b4a0dbee31e89730b88148beec0d25985 (patch)
tree66ffffb8af41aa11f8b7c3865f53d1bc036f1965
parentf7befea043c047c9c438700451e84f7c28923648 (diff)
efl_ui/scroll_manager: fix null derefs
Summary: CID 1405811, 1405804 Depends on D10208 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10209
-rw-r--r--src/lib/elementary/efl_ui_scroll_manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_scroll_manager.c b/src/lib/elementary/efl_ui_scroll_manager.c
index c210752d5b..3d332e94fb 100644
--- a/src/lib/elementary/efl_ui_scroll_manager.c
+++ b/src/lib/elementary/efl_ui_scroll_manager.c
@@ -610,8 +610,8 @@ _efl_ui_scroll_manager_efl_ui_scrollbar_bar_mode_get(const Eo *obj EINA_UNUSED,
610 Efl_Ui_Scrollbar_Mode *hmode, 610 Efl_Ui_Scrollbar_Mode *hmode,
611 Efl_Ui_Scrollbar_Mode *vmode) 611 Efl_Ui_Scrollbar_Mode *vmode)
612{ 612{
613 *hmode = sd->hbar_mode; 613 if (hmode) *hmode = sd->hbar_mode;
614 *vmode = sd->vbar_mode; 614 if (vmode) *vmode = sd->vbar_mode;
615} 615}
616 616
617/* returns TRUE when we need to move the scroller, FALSE otherwise. 617/* returns TRUE when we need to move the scroller, FALSE otherwise.