forked from enlightenment/efl
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:
parent
062bded1a7
commit
57531de444
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue