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:
Stefan Schmidt 2016-12-05 17:00:56 +01:00
parent 6f847f1f55
commit 74914c0515
1 changed files with 1 additions and 2 deletions

View File

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