From 8613ebe403bbb6eb63826daf755fa8e82731570d Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Mon, 5 Aug 2013 15:13:21 +0900 Subject: [PATCH] eo2: memset will be faster, still why not using NULL instead of -1 ? --- src/lib/eo/eo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index e6928e7..2705738 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -408,9 +408,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]) -- 2.7.4