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:
Christopher Michael 2021-02-25 09:11:17 -05:00
parent d70f9484c6
commit 598b7a1be6
1 changed files with 3 additions and 1 deletions

View File

@ -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);