summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJongmin Lee <jm105.lee@samsung.com>2019-06-11 08:27:49 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-06-11 08:27:49 -0400
commit56d7f22b51a8f8a18c09031d72a946d306c37751 (patch)
tree232599b62b9e1842f66cd8ff896600971cdcefb1
parente67c1f28d12dc0f1a150994835ea1d409e9fe17e (diff)
elm/interface_scrollable: check parameters before using them
Summary: it crashes when calling elm_interface_scrollable_loop_get() function with NULL parameters. Test Plan: call elm_interface_scrollable_loop_get() function with NULL parameters. Reviewers: Hermet, woohyun, kimcinoo, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9082
-rw-r--r--src/lib/elementary/elm_interface_scrollable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c
index 9db380ed68..02b808361c 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -4825,8 +4825,8 @@ _elm_interface_scrollable_content_loop_set(Eo *obj EINA_UNUSED, Elm_Scrollable_S
4825EOLIAN static void 4825EOLIAN static void
4826_elm_interface_scrollable_content_loop_get(const Eo *obj EINA_UNUSED, Elm_Scrollable_Smart_Interface_Data *sid, Eina_Bool *loop_h, Eina_Bool *loop_v) 4826_elm_interface_scrollable_content_loop_get(const Eo *obj EINA_UNUSED, Elm_Scrollable_Smart_Interface_Data *sid, Eina_Bool *loop_h, Eina_Bool *loop_v)
4827{ 4827{
4828 *loop_h = sid->loop_h; 4828 if (loop_h) *loop_h = sid->loop_h;
4829 *loop_v = sid->loop_v; 4829 if (loop_v) *loop_v = sid->loop_v;
4830} 4830}
4831 4831
4832EOLIAN static void 4832EOLIAN static void