From d85204f752c83a5a5191fb74a65928e47ded1981 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Mon, 20 Jun 2011 19:06:27 +0000 Subject: [PATCH] Remove dead assignment, as pointed out by Chris Wilson git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1137748 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/event/event.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index 03fef9a2fc..84deaa7d6f 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -787,7 +787,6 @@ static int process_socket(apr_thread_t *thd, apr_pool_t * p, apr_socket_t * sock int my_thread_num) { conn_rec *c; - listener_poll_type *pt; long conn_id = ID_FROM_CHILD_THREAD(my_child_num, my_thread_num); int rc; ap_sb_handle_t *sbh; @@ -795,11 +794,8 @@ static int process_socket(apr_thread_t *thd, apr_pool_t * p, apr_socket_t * sock ap_create_sb_handle(&sbh, p, my_child_num, my_thread_num); if (cs == NULL) { /* This is a new connection */ - + listener_poll_type *pt = apr_pcalloc(p, sizeof(*pt)); cs = apr_pcalloc(p, sizeof(conn_state_t)); - - pt = apr_pcalloc(p, sizeof(*pt)); - cs->bucket_alloc = apr_bucket_alloc_create(p); c = ap_run_create_connection(p, ap_server_conf, sock, conn_id, sbh, cs->bucket_alloc); @@ -845,7 +841,6 @@ static int process_socket(apr_thread_t *thd, apr_pool_t * p, apr_socket_t * sock else { c = cs->c; c->sbh = sbh; - pt = cs->pfd.client_data; c->current_thread = thd; } -- 2.40.0