forked from enlightenment/efl
elm: config: check return value of eina_value_get instead of returning always TRUE
There is always a chance that eina_value_get will not return EINA_TRUE here so better check it and use it as return value directly. CID: 1357138
This commit is contained in:
parent
6f847f1f55
commit
74914c0515
|
@ -4348,8 +4348,7 @@ _eina_value_to_int(const Eina_Value *val, int *i)
|
|||
|
||||
if (eina_value_type_get(val) == EINA_VALUE_TYPE_INT)
|
||||
{
|
||||
eina_value_get(val, i);
|
||||
return EINA_TRUE;
|
||||
return eina_value_get(val, i);
|
||||
}
|
||||
|
||||
ival = eina_value_new(EINA_VALUE_TYPE_INT);
|
||||
|
|
Loading…
Reference in New Issue