tests: eo: handle error return of eina_value_int_convert()

CID: 1400962

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11958
This commit is contained in:
Stefan Schmidt 2020-06-09 15:09:08 +02:00
parent 68d06ecc1a
commit e9e8368823
1 changed files with 9 additions and 2 deletions

View File

@ -27,12 +27,19 @@ static Eina_Error
_a_set_reflect(Eo *obj, Eina_Value value)
{
int a;
Eina_Error r = 0;
eina_value_int_convert(&value, &a);
if (!eina_value_int_convert(&value, &a))
{
r = EINA_ERROR_VALUE_FAILED;
goto end;
}
simple_a_set(obj, a);
end:
eina_value_flush(&value);
return 0;
return r;
}
static int