You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2009/03/24 16:19:57 UTC

svn commit: r757840 - /httpd/httpd/trunk/modules/cluster/mod_heartbeat.c

Author: bnicholes
Date: Tue Mar 24 15:19:54 2009
New Revision: 757840

URL: http://svn.apache.org/viewvc?rev=757840&view=rev
Log:
Declare variables prior to code statements otherwise some compilers choke.

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartbeat.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartbeat.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartbeat.c?rev=757840&r1=757839&r2=757840&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartbeat.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartbeat.c Tue Mar 24 15:19:54 2009
@@ -141,8 +141,8 @@
     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);