jayji pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1168bd0608727b93a3328d7abe5330816b0d34c5

commit 1168bd0608727b93a3328d7abe5330816b0d34c5
Author: Jean Guyomarc'h <j...@guyomarch.bzh>
Date:   Sun Mar 11 09:41:30 2018 +0100

    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.
---
 src/lib/ecore/efl_loop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index 4ba729dbb3..3dc22ea5da 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -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);
 }
 

-- 


Reply via email to