efl_loop: fix exit code of the loop

For numeric types, eina_value_set() accepts values instead of references
on the value to be set. Hence, we were affecting as the exit code of the
loop a garbage value, yielding to invalid results.
This commit is contained in:
Jean Guyomarc'h 2018-03-11 09:41:30 +01:00
parent bae1b25b8d
commit 1168bd0608
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ efl_exit(int exit_code)
Eina_Value v = EINA_VALUE_EMPTY;
eina_value_setup(&v, EINA_VALUE_TYPE_INT);
eina_value_set(&v, &exit_code);
eina_value_set(&v, exit_code);
efl_loop_quit(efl_main_loop_get(), v);
}