summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-08-05 15:13:21 +0900
committerJérémy Zurcher <jeremy@asynk.ch>2013-08-05 15:13:21 +0900
commit39fb4c3d67e38939e04585832fffbbcd33c2450b (patch)
tree1378b6eaaf7ff410b0c4f2de4adf2dbc5d3fd0f0
parentfd75314afc9ea44b5279bd4ad229e3461cda5f0e (diff)
downloadefl-39fb4c3d67e38939e04585832fffbbcd33c2450b.tar.gz
eo2: memset will be faster, still why not using NULL instead of -1 ?
-rw-r--r--src/lib/eo/eo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index a6e19f837c..0de94fc369 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -404,9 +404,7 @@ _eo2_do_end(const Eina_Bool obj_do)
if(obj_do)
_eo_unref(fptr->obj);
- fptr->obj = NULL;
- fptr->obj_id = NULL;
- fptr->klass = NULL;
+ memset(fptr, 0, sizeof (Eo2_Stack_Frame));
fptr->obj_data = EO2_INVALID_DATA;
if (fptr == &eo2_call_stack.stack[0])