forked from enlightenment/efl
eina_promise: Fix unchecked return value
Small patch to check return value of eina_value_get reported by Coverity Fixes CID1400993
This commit is contained in:
parent
0df61dc4fd
commit
359435bed9
|
@ -1468,7 +1468,9 @@ _eina_future_cb_ignore_error(void *data, const Eina_Value value,
|
||||||
if (value.type == EINA_VALUE_TYPE_ERROR)
|
if (value.type == EINA_VALUE_TYPE_ERROR)
|
||||||
{
|
{
|
||||||
Eina_Error err;
|
Eina_Error err;
|
||||||
eina_value_get(&value, &err);
|
|
||||||
|
if (!eina_value_get(&value, &err))
|
||||||
|
return EINA_VALUE_EMPTY;
|
||||||
if ((!expected_err) || (expected_err == err))
|
if ((!expected_err) || (expected_err == err))
|
||||||
{
|
{
|
||||||
DBG("ignored error %d (%s)", err, eina_error_msg_get(err));
|
DBG("ignored error %d (%s)", err, eina_error_msg_get(err));
|
||||||
|
|
Loading…
Reference in New Issue