efl_loop: Fix unchecked return value

Small patch to check return value of eina_value_get reported by Coverity

Fixes CID1400919
This commit is contained in:
Christopher Michael 2021-02-25 09:40:29 -05:00
parent 3e5629f125
commit 369f2b3d87
1 changed files with 5 additions and 1 deletions

View File

@ -140,7 +140,11 @@ efl_loop_exit_code_process(Eina_Value *value)
eina_value_setup(&v, EINA_VALUE_TYPE_INT);
if (!eina_value_convert(value, &v)) r = -1;
else eina_value_get(&v, &r);
else
{
if (!eina_value_get(&v, &r))
r = -1;
}
}
else
{