Revert pool_alloc's use of bomb if pool == NULL.

This commit is contained in:
J.W. Schultz
2004-02-10 21:11:24 +00:00
parent 5bf63a11f4
commit 15f85b1f63

View File

@@ -90,12 +90,7 @@ pool_alloc(alloc_pool_t p, size_t len, char *bomb)
{
struct alloc_pool *pool = (struct alloc_pool *) p;
if (!pool)
{
char *msg;
if (asprintf(&msg, "pool_alloc(%s) on NULL pool", bomb) > 0)
bomb = msg;
goto bomb;
}
return NULL;
if (!len)
len = pool->quantum;