mempool -> init the mempool with calloc. we cannot know for sure the

mempool backend inits all members, so make sure they are set to 0. not
a cost worth quibbling over. how many mempools do you really create
during the life of an app?



SVN revision: 51548
This commit is contained in:
Carsten Haitzler 2010-08-22 22:35:24 +00:00
parent 9b006054b7
commit ed78d8a36b
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ _new_va(const char *name,
goto on_error;
err = EINA_ERROR_OUT_OF_MEMORY;
mp = malloc(sizeof(Eina_Mempool));
mp = calloc(1, sizeof(Eina_Mempool));
if (!mp)
goto on_error;