Fixed weird assertion problem reported by Jan Delgado.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-10-17 22:04:20 +00:00
commit 4e2fb1a6df

View file

@ -42,8 +42,10 @@ static int pools_initialized = 0;
static void
CreatePool() {
Pool *p = 0;
assert((p = (Pool *) DohMalloc(sizeof(Pool))));
assert((p->ptr = (DohBase *) DohMalloc(sizeof(DohBase)*PoolSize)));
p = (Pool *) DohMalloc(sizeof(Pool));
assert(p);
p->ptr = (DohBase *) DohMalloc(sizeof(DohBase)*PoolSize);
assert(p->ptr);
p->len = PoolSize;
p->blen = PoolSize*sizeof(DohBase);
p->current = 0;