From: André Malo Date: Sun, 18 Jan 2004 00:00:18 +0000 (+0000) Subject: in conservative C declarations still have to be the first in a function. X-Git-Tag: pre_ajp_proxy~788 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=866b6af8f39d6ab71096a5bd1d51f726039d410a;p=apache in conservative C declarations still have to be the first in a function. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102361 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/loggers/mod_log_config.c b/modules/loggers/mod_log_config.c index 7e79a97454..87c037cc25 100644 --- a/modules/loggers/mod_log_config.c +++ b/modules/loggers/mod_log_config.c @@ -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; }