forked from enlightenment/efl
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:
parent
bae1b25b8d
commit
1168bd0608
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue