apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r710107 - /apr/apr-util/trunk/hooks/apr_hooks.c
Date Mon, 03 Nov 2008 17:23:31 GMT
Author: pquerna
Date: Mon Nov  3 09:23:31 2008
New Revision: 710107

URL: http://svn.apache.org/viewvc?rev=710107&view=rev
Log:
* hooks/apr_hooks.c
    (apr_hook_sort_all): If s_aHooksToSort hasn't been used yet, create it inside sort all.

Modified:
    apr/apr-util/trunk/hooks/apr_hooks.c

Modified: apr/apr-util/trunk/hooks/apr_hooks.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/hooks/apr_hooks.c?rev=710107&r1=710106&r2=710107&view=diff
==============================================================================
--- apr/apr-util/trunk/hooks/apr_hooks.c (original)
+++ apr/apr-util/trunk/hooks/apr_hooks.c Mon Nov  3 09:23:31 2008
@@ -243,6 +243,10 @@
 #endif
     int n;
 
+    if (!s_aHooksToSort) {
+        s_aHooksToSort = apr_array_make(apr_hook_global_pool, 1, sizeof(HookSortEntry));
+    }
+        
     for(n=0 ; n < s_aHooksToSort->nelts ; ++n) {
 	HookSortEntry *pEntry=&((HookSortEntry *)s_aHooksToSort->elts)[n];
 	*pEntry->paHooks=sort_hook(*pEntry->paHooks,pEntry->szHookName);



Mime
View raw message