summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-03-10 07:32:33 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-03-10 07:32:33 +0000
commit07ee56a3e3b9f2516e3fc899c6fbf417fb9f9846 (patch)
tree5b23ffceddde9e23c55cf94e01a864ce1960fbcd /memory
parentdaa0242b32f15d6428772bdd6bd37aae04db78f4 (diff)
downloadlibapr-07ee56a3e3b9f2516e3fc899c6fbf417fb9f9846.tar.gz
* memory/unix/apr_pools.c (apr_pool_create_ex): Revert previous
change; add comment. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@384722 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r--memory/unix/apr_pools.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c
index b2bd54a94..b4218fe11 100644
--- a/memory/unix/apr_pools.c
+++ b/memory/unix/apr_pools.c
@@ -791,7 +791,11 @@ APR_DECLARE(apr_status_t) apr_pool_create_ex(apr_pool_t **newpool,
if (!parent)
parent = global_pool;
- if (!abort_fn)
+ /* parent will always be non-NULL here except the first time a
+ * pool is created, in which case allocator is guaranteed to be
+ * non-NULL. */
+
+ if (!abort_fn && parent)
abort_fn = parent->abort_fn;
if (allocator == NULL)