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 02:46:27 UTC

svn commit: r300198 - /httpd/httpd/trunk/modules/http/http_core.c

Author: wrowe
Date: Wed Oct  5 17:46:23 2005
New Revision: 300198

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

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

Modified:
    httpd/httpd/trunk/modules/http/http_core.c

Modified: httpd/httpd/trunk/modules/http/http_core.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/http/http_core.c?rev=300198&r1=300197&r2=300198&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_core.c (original)
+++ httpd/httpd/trunk/modules/http/http_core.c Wed Oct  5 17:46:23 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);
     }