From fb29f09f004a8c560646114a198319bc9681dd3f Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Fri, 25 Jan 2002 05:39:21 +0000 Subject: [PATCH] Eliminate needless variable that wasn't initialized anyway. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93023 13f79535-47bb-0310-9956-ffa450edef68 --- server/protocol.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/protocol.c b/server/protocol.c index 0526ea5d65..cf997d6f2b 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -212,13 +212,12 @@ AP_DECLARE(apr_status_t) ap_rgetline(char **s, apr_size_t n, apr_bucket_brigade *b; apr_bucket *e; apr_size_t bytes_handled = 0, current_alloc = 0; - apr_off_t bytes_read; char *pos, *last_char = *s; int do_alloc = (*s == NULL), saw_eos = 0; b = apr_brigade_create(r->pool); rv = ap_get_brigade(r->input_filters, b, AP_MODE_GETLINE, - APR_BLOCK_READ, bytes_read); + APR_BLOCK_READ, 0); if (rv != APR_SUCCESS) { return rv; @@ -379,9 +378,8 @@ AP_DECLARE(apr_status_t) ap_rgetline(char **s, apr_size_t n, apr_size_t len; /* We only care about the first byte. */ - bytes_read = 1; rv = ap_get_brigade(r->input_filters, b, AP_MODE_SPECULATIVE, - APR_BLOCK_READ, bytes_read); + APR_BLOCK_READ, 1); if (rv != APR_SUCCESS) { return rv; -- 2.50.1