]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Spare us a wasted variable, csd is initialized null, acting
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 6 Oct 2005 00:46:23 +0000 (00:46 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 6 Oct 2005 00:46:23 +0000 (00:46 +0000)
  as the 'csd_set' indicator.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@300198 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 9dcee75697e3133cd234bc0ff24520fe0ddb9f3d..58a268fe7b51dfa2ab30194b44fd3d3bf1b92ea7 100644 (file)
@@ -153,7 +153,6 @@ static int ap_process_http_async_connection(conn_rec *c)
 static int ap_process_http_connection(conn_rec *c)
 {
     request_rec *r;
-    int csd_set = 0;
     apr_socket_t *csd = NULL;
 
     /*
@@ -183,9 +182,8 @@ static int ap_process_http_connection(conn_rec *c)
         if (ap_graceful_stop_signalled())
             break;
         /* Go straight to select() to wait for the next request */
-        if (!csd_set) {
+        if (!csd) {
             csd = ap_get_module_config(c->conn_config, &core_module);
-            csd_set = 1;
         }
         apr_socket_opt_set(csd, APR_INCOMPLETE_READ, 1);
     }