summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-01-08 13:40:02 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-01-08 13:40:02 -0800
commit1f28dce02819892c46cc9b191ac18720c5b2cf7a (patch)
treec88e93e3a84fc5b35c05d0616a3563fadbb46657
parentdbba64a5f9564c3631975bdf2cbc07f6ad87c001 (diff)
ecore: make loop quit exit code work with EINA_VALUE_EMPTY.
-rw-r--r--src/lib/ecore/efl_loop.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index 9a09a16c1d..333fe1de7d 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -143,9 +143,19 @@ _efl_loop_efl_object_provider_find(const Eo *obj, Efl_Loop_Data *pd, const Efl_O
143EAPI int 143EAPI int
144efl_loop_exit_code_process(Eina_Value *value) 144efl_loop_exit_code_process(Eina_Value *value)
145{ 145{
146 const Eina_Value_Type *t = eina_value_type_get(value); 146 Eina_Value def = EINA_VALUE_EMPTY;
147 const Eina_Value_Type *t;
147 int r = 0; 148 int r = 0;
148 149
150 if (value == NULL ||
151 !value->type)
152 {
153 def = eina_value_int_init(0);
154 value = &def;
155 }
156
157 t = eina_value_type_get(value);
158
149 if (t == EINA_VALUE_TYPE_UCHAR || 159 if (t == EINA_VALUE_TYPE_UCHAR ||
150 t == EINA_VALUE_TYPE_USHORT || 160 t == EINA_VALUE_TYPE_USHORT ||
151 t == EINA_VALUE_TYPE_UINT || 161 t == EINA_VALUE_TYPE_UINT ||