]> granicus.if.org Git - apache/commitdiff
Fix the case where AP_DEBUG is unset.
authorGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 17:13:55 +0000 (17:13 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 17:13:55 +0000 (17:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220850 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c

index d7826199a9e6f81a61807062402b9c9f61b2cded..982e8e5d1e72981eb36faddb378e3e284b16de4d 100644 (file)
@@ -810,6 +810,7 @@ static void process_pollop(pollset_op_t *op)
  */
 static int start_lingering_close(event_conn_state_t *cs, ap_equeue_t *eq)
 {
+    apr_status_t rv;
 
     cs->c->sbh = NULL;  /* prevent scoreboard updates from the listener 
                          * worker will loop around soon and set SERVER_READY
@@ -834,7 +835,6 @@ static int start_lingering_close(event_conn_state_t *cs, ap_equeue_t *eq)
 
 #ifdef AP_DEBUG
         {
-            apr_status_t rv;
             rv = apr_socket_timeout_set(csd, 0);
             AP_DEBUG_ASSERT(rv == APR_SUCCESS);
         }