* eina: fix wrong test in eina_big.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Jul 2010 18:10:53 +0000 (18:10 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Jul 2010 18:10:53 +0000 (18:10 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@50602 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/mp/one_big/eina_one_big.c

index b6ac4e2..708c7b3 100644 (file)
@@ -80,7 +80,7 @@ static void *
 eina_one_big_malloc(void *data, __UNUSED__ unsigned int size)
 {
    One_Big *pool = data;
-   unsigned char *mem;
+   unsigned char *mem = NULL;
 
 #ifdef EFL_HAVE_THREADS
 # ifdef EFL_HAVE_POSIX_THREADS
@@ -90,7 +90,7 @@ eina_one_big_malloc(void *data, __UNUSED__ unsigned int size)
 # endif
 #endif
 
-   if (pool->base)
+   if (pool->empty)
      {
         mem = eina_trash_pop(&pool->empty);
         pool->usage++;