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
This commit is contained in:
Jongmin Lee 2019-06-11 08:27:49 -04:00 committed by Mike Blumenkrantz
parent e67c1f28d1
commit 56d7f22b51
1 changed files with 2 additions and 2 deletions

View File

@ -4825,8 +4825,8 @@ _elm_interface_scrollable_content_loop_set(Eo *obj EINA_UNUSED, Elm_Scrollable_S
EOLIAN static void
_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)
{
*loop_h = sid->loop_h;
*loop_v = sid->loop_v;
if (loop_h) *loop_h = sid->loop_h;
if (loop_v) *loop_v = sid->loop_v;
}
EOLIAN static void