]> granicus.if.org Git - apache/commitdiff
in conservative C declarations still have to be the first in a function.
authorAndré Malo <nd@apache.org>
Sun, 18 Jan 2004 00:00:18 +0000 (00:00 +0000)
committerAndré Malo <nd@apache.org>
Sun, 18 Jan 2004 00:00:18 +0000 (00:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102361 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index 7e79a974541bb387bf584fa48b1cbab277132955..87c037cc257da5c076348209368aab6c884b2fd8 100644 (file)
@@ -1219,10 +1219,6 @@ static apr_status_t flush_all_logs(void *data)
 
 static int init_config_log(apr_pool_t *pc, apr_pool_t *p, apr_pool_t *pt, server_rec *s)
 {
-    if (buffered_logs) {
-        all_buffered_logs = apr_array_make(p, 5, sizeof(buffered_log *));
-    }
-
     /* First, do "physical" server, which gets default log fd and format
      * for the virtual servers, if they don't override...
      */
@@ -1234,6 +1230,11 @@ static int init_config_log(apr_pool_t *pc, apr_pool_t *p, apr_pool_t *pt, server
         res = open_multi_logs(s, p);
     }
 
+    /* Finally init buffered logs */
+    if (buffered_logs) {
+        all_buffered_logs = apr_array_make(p, 5, sizeof(buffered_log *));
+    }
+
     return res;
 }