summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2018-04-22 15:38:12 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2018-04-22 15:44:41 +0300
commit9cbba2d0b452934b485706de5f8956c984556e29 (patch)
tree93fe0834aad155329f5bff77ef0fe414d9a1a8a6 /src
parent558f4c36ac7fa67fe47b5088d0ef61d66ddd2dc4 (diff)
Fix exit code setting for legacy applications
The value must be given to eina_value_set and not a pointer to a Eina_Value. This bug results in always getting wrong exit code when the application terminates.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/ecore_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 7801dd5feb..e2f4921984 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -1257,10 +1257,9 @@ EAPI void
1257ecore_main_loop_quit(void) 1257ecore_main_loop_quit(void)
1258{ 1258{
1259 Eina_Value v = EINA_VALUE_EMPTY; 1259 Eina_Value v = EINA_VALUE_EMPTY;
1260 int val = 0;
1261 1260
1262 eina_value_setup(&v, EINA_VALUE_TYPE_INT); 1261 eina_value_setup(&v, EINA_VALUE_TYPE_INT);
1263 eina_value_set(&v, &val); 1262 eina_value_set(&v, 0);
1264 EINA_MAIN_LOOP_CHECK_RETURN; 1263 EINA_MAIN_LOOP_CHECK_RETURN;
1265 efl_loop_quit(ML_OBJ, v); 1264 efl_loop_quit(ML_OBJ, v);
1266} 1265}