projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b279b6
)
eo2: memset will be faster, still why not using NULL instead of -1 ?
author
Cedric Bail
<cedric.bail@samsung.com>
Mon, 5 Aug 2013 06:13:21 +0000
(15:13 +0900)
committer
Tom Hacohen
<tom@stosb.com>
Thu, 10 Apr 2014 03:20:17 +0000
(
04:20
+0100)
src/lib/eo/eo.c
patch
|
blob
|
history
diff --git
a/src/lib/eo/eo.c
b/src/lib/eo/eo.c
index
e6928e7
..
2705738
100644
(file)
--- 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])