apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r660368 - /apr/apr-util/branches/1.3.x/misc/apu_dso.c
Date Tue, 27 May 2008 04:24:56 GMT
Author: bojan
Date: Mon May 26 21:24:52 2008
New Revision: 660368

URL: http://svn.apache.org/viewvc?rev=660368&view=rev
Log:
Backport r660367 from the trunk.
No need to look for global pool if we're alrealy initialised.

Modified:
    apr/apr-util/branches/1.3.x/misc/apu_dso.c

Modified: apr/apr-util/branches/1.3.x/misc/apu_dso.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/misc/apu_dso.c?rev=660368&r1=660367&r2=660368&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/misc/apu_dso.c (original)
+++ apr/apr-util/branches/1.3.x/misc/apu_dso.c Mon May 26 21:24:52 2008
@@ -80,13 +80,14 @@
     apr_pool_t *parent;
 
 #if APU_DSO_BUILD
+    if (dsos != NULL) {
+        return APR_SUCCESS;
+    }
+
     /* Top level pool scope, need process-scope lifetime */
     for (parent = global = pool; parent; parent = apr_pool_parent_get(global))
          global = parent;
 
-    if (dsos != NULL) {
-        return APR_SUCCESS;
-    }
     dsos = apr_hash_make(global);
 
 #if APR_HAS_THREADS



Mime
View raw message