forked from enlightenment/efl
eina/mp/one_big: Add a comment to clarify why we do not memset the complete memory.
To avoid people getting confused over this code, like myself, add a comment to clarify that only the elements need to be set to zero while the payload does not matter here.
This commit is contained in:
parent
16c8ab3b18
commit
64c7bd14df
|
@ -125,6 +125,7 @@ eina_one_big_malloc(void *data, EINA_UNUSED unsigned int size)
|
|||
else
|
||||
{
|
||||
pool->over++;
|
||||
/* Only need to zero list elements and not the payload here */
|
||||
memset(mem, 0, sizeof(Eina_Inlist));
|
||||
pool->over_list = eina_inlist_append(pool->over_list,
|
||||
(Eina_Inlist *)mem);
|
||||
|
|
Loading…
Reference in New Issue