forked from enlightenment/efl
elm_slider: Fix unchecked return value
Small patch to check the return value of eina_value_get reported by Coverity Fixes CID1401061
This commit is contained in:
parent
d70f9484c6
commit
598b7a1be6
|
@ -1571,7 +1571,9 @@ _format_legacy_to_format_eo_cb(void *data, Eina_Strbuf *str, const Eina_Value va
|
|||
const Eina_Value_Type *type = eina_value_type_get(&value);
|
||||
|
||||
if (type == EINA_VALUE_TYPE_DOUBLE)
|
||||
eina_value_get(&value, &val);
|
||||
{
|
||||
if (!eina_value_get(&value, &val)) return EINA_FALSE;
|
||||
}
|
||||
|
||||
if (sfwd->format_cb)
|
||||
buf = sfwd->format_cb(val);
|
||||
|
|
Loading…
Reference in New Issue