forked from enlightenment/efl
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:
parent
68d06ecc1a
commit
e9e8368823
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue