From: Justin Erenkrantz Date: Fri, 25 Jan 2002 05:39:21 +0000 (+0000) Subject: Eliminate needless variable that wasn't initialized anyway. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23437235df959b536a1cbab77357996f7c65042d;p=apache 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 --- 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;