summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-08 12:11:20 +0100
committerTom Hacohen <tom@stosb.com>2014-04-10 04:20:20 +0100
commita0d761cfa9bd182449b2c4cf483c07e71821f1cb (patch)
tree559e3c0625eb0b3e642129565b8f91c394230def
parent5dc95bb50ca8bb387a1a9516f288dd56c61147d5 (diff)
downloadefl-a0d761cfa9bd182449b2c4cf483c07e71821f1cb.tar.gz
eo2: _eo2_call_resolve() fails if op is EO_NOOP
-rw-r--r--src/lib/eo/eo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 2e053bd1e2..4d264782e1 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -484,6 +484,8 @@ _eo2_call_resolve(const char *func_name, const Eo_Op op, Eo2_Op_Call_Data *call,
const op_type_funcs *func;
Eina_Bool is_obj;
+ if (op == EO_NOOP) return EINA_FALSE;
+
fptr = eo2_call_stack.frame_ptr;
is_obj = !_eo_is_a_class(fptr->eo_id);
@@ -586,6 +588,7 @@ end:
}
else
{
+ /* we should not be able to take this branch */
ERR("in %s:%d: func '%s' (%d) could not be resolved for class '%s'.",
file, line, func_name, op, main_klass->desc->name);
}