forked from enlightenment/efl
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:
parent
9b006054b7
commit
ed78d8a36b
|
@ -76,7 +76,7 @@ _new_va(const char *name,
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
err = EINA_ERROR_OUT_OF_MEMORY;
|
err = EINA_ERROR_OUT_OF_MEMORY;
|
||||||
mp = malloc(sizeof(Eina_Mempool));
|
mp = calloc(1, sizeof(Eina_Mempool));
|
||||||
if (!mp)
|
if (!mp)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue