mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-24 14:55:46 -04:00
Revert pool_alloc's use of bomb if pool == NULL.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user