cedric pushed a commit to branch master.

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

commit d7da460dd20638b731bf87de73039dfa3928d2ca
Author: Cedric BAIL <[email protected]>
Date:   Thu Mar 29 11:06:12 2018 -0700

    eo: use EINA_SAFETY_ON_TRUE_GOTO to error message out in case of mistake.
---
 src/lib/eo/eo_base_class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 2ed220a339..183ed0e125 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -1984,7 +1984,7 @@ efl_future_cb_from_desc(Eo *o, const Efl_Future_Cb_Desc 
desc)
    EINA_SAFETY_ON_NULL_GOTO(o, end);
    pd = efl_data_scope_get(o, EFL_OBJECT_CLASS);
    EINA_SAFETY_ON_NULL_GOTO(pd, end);
-   if (pd->invalidate) goto end;
+   EINA_SAFETY_ON_TRUE_GOTO(pd->invalidate, end);
    pending = _efl_pending_future_new();
    EINA_SAFETY_ON_NULL_GOTO(pending, end);
    memcpy(&pending->desc, &desc, sizeof(Efl_Future_Cb_Desc));

-- 


Reply via email to