Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5bf63a1
)
Revert pool_alloc's use of bomb if pool == NULL.
author
J.W. Schultz
<jw@samba.org>
Tue, 10 Feb 2004 21:11:24 +0000
(21:11 +0000)
committer
J.W. Schultz
<jw@samba.org>
Tue, 10 Feb 2004 21:11:24 +0000
(21:11 +0000)
lib/pool_alloc.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/pool_alloc.c
b/lib/pool_alloc.c
index
4c93ea1
..
9eff529
100644
(file)
--- a/
lib/pool_alloc.c
+++ b/
lib/pool_alloc.c
@@
-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)
{
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;
if (!len)
len = pool->quantum;