Skip to content

Commit

Permalink
Revert pool_alloc's use of bomb if pool == NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
J.W. Schultz committed Feb 10, 2004
1 parent 5bf63a1 commit 15f85b1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/pool_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15f85b1

Please sign in to comment.