From cf03cc1c7bed5da8fd45aac80ec8575c3cbc13a0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 23 Aug 2012 15:04:48 +0000 Subject: [PATCH] Eo: Moved a magic check from an internal function to the external function. SVN revision: 75626 --- legacy/eobj/src/lib/eo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/eobj/src/lib/eo.c b/legacy/eobj/src/lib/eo.c index 4d2a2f2..9ece6f2 100644 --- a/legacy/eobj/src/lib/eo.c +++ b/legacy/eobj/src/lib/eo.c @@ -386,8 +386,6 @@ _eo_dov_internal(Eo *obj, Eo_Op_Type op_type, va_list p_list) Eo_Op op = EO_NOOP; Eo_Kls_Itr prev_state; - EO_MAGIC_RETURN_VAL(obj, EO_EINA_MAGIC, EINA_FALSE); - prev_error = obj->do_error; _eo_ref(obj); @@ -422,6 +420,8 @@ eo_do_internal(Eo *obj, Eo_Op_Type op_type, ...) Eina_Bool ret = EINA_TRUE; va_list p_list; + EO_MAGIC_RETURN_VAL(obj, EO_EINA_MAGIC, EINA_FALSE); + va_start(p_list, op_type); ret = _eo_dov_internal(obj, op_type, p_list); -- 2.7.4