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:
Stefan Schmidt 2013-06-14 09:56:55 +01:00
parent 16c8ab3b18
commit 64c7bd14df
1 changed files with 1 additions and 0 deletions

View File

@ -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);