From: William A. Rowe Jr Date: Thu, 6 Oct 2005 00:46:23 +0000 (+0000) Subject: Spare us a wasted variable, csd is initialized null, acting X-Git-Tag: 2.3.0~2909 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e279db098e9447b7e25f94f71394ef16e8c2097a;p=thirdparty%2Fapache%2Fhttpd.git 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/trunk@300198 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); }