summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-02-26 16:35:28 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-26 16:35:28 +0900
commit57531de4448e7e621490cd2e07f4042f01a1dbf3 (patch)
treea51a64f0c77413b4fee3f1ce641bb42414fe0647
parent062bded1a7092486cb91e72f3e78372b770d78e6 (diff)
elm_slider: Add return value check
Summary: Calling eina_value_get() without checking return value. CID: 1400991 Test Plan: N/A Reviewers: YOhoho, Hermet, Jaehyun_Cho, CHAN Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11416
-rw-r--r--src/lib/elementary/elm_slider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_slider.c b/src/lib/elementary/elm_slider.c
index 2c6c26b84d..8aa6536a7a 100644
--- a/src/lib/elementary/elm_slider.c
+++ b/src/lib/elementary/elm_slider.c
@@ -1357,7 +1357,7 @@ _indi_default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
1357 1357
1358 if (type != EINA_VALUE_TYPE_DOUBLE) return EINA_FALSE; 1358 if (type != EINA_VALUE_TYPE_DOUBLE) return EINA_FALSE;
1359 1359
1360 eina_value_get(&value, &v); 1360 if (!eina_value_get(&value, &v)) return EINA_FALSE;
1361 eina_strbuf_append_printf(str, sd->indi_template, v); 1361 eina_strbuf_append_printf(str, sd->indi_template, v);
1362 1362
1363 return EINA_TRUE; 1363 return EINA_TRUE;