eina: prevent NULL offsetting.

SVN revision: 58560
This commit is contained in:
Cedric BAIL 2011-04-11 17:28:16 +00:00
parent 4a557812e1
commit 90801855db
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ eina_chained_mempool_malloc(void *data, __UNUSED__ unsigned int size)
#endif
// Either we have some free space in the first one, or there is no free space.
p = EINA_INLIST_CONTAINER_GET(pool->first, Chained_Pool);
if (pool->first) p = EINA_INLIST_CONTAINER_GET(pool->first, Chained_Pool);
// base is not NULL - has a free slot
if (p && !p->base && !p->last)