summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-08 12:11:20 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-08 12:11:20 +0100
commit9aa69058e9148841bdf89ec1fb513b72d4dc12ea (patch)
treedb0ac9514600e95ba7e2a14ffa05d1e4db4450f4
parent239877e081d5abe9c79591d1a343daeb34122dc2 (diff)
downloadefl-9aa69058e9148841bdf89ec1fb513b72d4dc12ea.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 fe4e6acf11..ff530f78c0 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -483,6 +483,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);
@@ -585,6 +587,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);
}