]> granicus.if.org Git - apache/commitdiff
Declare variables prior to code statements otherwise some compilers choke.
authorBradley Nicholes <bnicholes@apache.org>
Tue, 24 Mar 2009 15:19:54 +0000 (15:19 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 24 Mar 2009 15:19:54 +0000 (15:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@757840 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartbeat.c

index 3c456debe6fd4f6ee2d06c923f7574abfee5ac0b..2e8955bde2a90e9dab65344ab634abbe65c10de0 100644 (file)
@@ -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);