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
This commit is contained in:
junsu choi 2020-02-26 16:35:28 +09:00 committed by Hermet Park
parent 062bded1a7
commit 57531de444
1 changed files with 1 additions and 1 deletions

View File

@ -1357,7 +1357,7 @@ _indi_default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
if (type != EINA_VALUE_TYPE_DOUBLE) return EINA_FALSE;
eina_value_get(&value, &v);
if (!eina_value_get(&value, &v)) return EINA_FALSE;
eina_strbuf_append_printf(str, sd->indi_template, v);
return EINA_TRUE;