From: William A. Rowe Jr Date: Thu, 6 Oct 2005 15:55:58 +0000 (+0000) Subject: Backport: 300198 X-Git-Tag: 2.1.9~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfefaf556faaabeb25622aa8c815b60533822941;p=thirdparty%2Fapache%2Fhttpd.git Backport: 300198 Spare us a wasted variable, csd is initialized null, acting as the 'csd_set' indicator. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@306784 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 9dcee75697e..58a268fe7b5 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -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); }