You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2005/10/06 17:56:00 UTC

svn commit: r306784 - /httpd/httpd/branches/2.2.x/modules/http/http_core.c

Author: wrowe
Date: Thu Oct  6 08:55:58 2005
New Revision: 306784

URL: http://svn.apache.org/viewcvs?rev=306784&view=rev
Log:
Backport: 300198

  Spare us a wasted variable, csd is initialized null, acting
  as the 'csd_set' indicator.



Modified:
    httpd/httpd/branches/2.2.x/modules/http/http_core.c

Modified: httpd/httpd/branches/2.2.x/modules/http/http_core.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.2.x/modules/http/http_core.c?rev=306784&r1=306783&r2=306784&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/http/http_core.c (original)
+++ httpd/httpd/branches/2.2.x/modules/http/http_core.c Thu Oct  6 08:55:58 2005
@@ -153,7 +153,6 @@
 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 @@
         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);
     }