From: Bradley Nicholes Date: Tue, 24 Mar 2009 15:19:54 +0000 (+0000) Subject: Declare variables prior to code statements otherwise some compilers choke. X-Git-Tag: 2.3.3~841 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b8495768a2b445bc81213f5696ae8a9b5497014;p=apache Declare variables prior to code statements otherwise some compilers choke. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@757840 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cluster/mod_heartbeat.c b/modules/cluster/mod_heartbeat.c index 3c456debe6..2e8955bde2 100644 --- a/modules/cluster/mod_heartbeat.c +++ b/modules/cluster/mod_heartbeat.c @@ -141,8 +141,8 @@ static void* APR_THREAD_FUNC hb_worker(apr_thread_t *thd, void *data) apr_pool_create(&tpool, pool); apr_pool_tag(tpool, "heartbeat_worker_temp"); while (ctx->keep_running) { - apr_pool_clear(tpool); int mpm_state = 0; + apr_pool_clear(tpool); rv = ap_mpm_query(AP_MPMQ_MPM_STATE, &mpm_state);