From: Cedric Bail Date: Mon, 5 Aug 2013 06:13:21 +0000 (+0900) Subject: eo2: memset will be faster, still why not using NULL instead of -1 ? X-Git-Tag: v1.10.0-alpha1~200^2~107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8613ebe403bbb6eb63826daf755fa8e82731570d;p=platform%2Fupstream%2Fefl.git eo2: memset will be faster, still why not using NULL instead of -1 ? --- 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])