You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2006/06/02 23:44:41 UTC

svn commit: r411301 - /apr/apr/trunk/memory/unix/apr_pools.c

Author: bnicholes
Date: Fri Jun  2 14:44:40 2006
New Revision: 411301

URL: http://svn.apache.org/viewvc?rev=411301&view=rev
Log:
Don't allow apr_pool_parent_get() to return a NULL pointer.  Since there aren't any process boundaries on NetWare which makes the global_pool global to all applications, return the application specific pool as the global_pool. 

Modified:
    apr/apr/trunk/memory/unix/apr_pools.c

Modified: apr/apr/trunk/memory/unix/apr_pools.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memory/unix/apr_pools.c?rev=411301&r1=411300&r2=411301&view=diff
==============================================================================
--- apr/apr/trunk/memory/unix/apr_pools.c (original)
+++ apr/apr/trunk/memory/unix/apr_pools.c Fri Jun  2 14:44:40 2006
@@ -1824,7 +1824,7 @@
     /* On NetWare, don't return the global_pool, return the application pool 
        as the top most pool */
     if (pool->parent == global_pool)
-        return NULL;
+        return pool;
     else
 #endif
     return pool->parent;