]> granicus.if.org Git - apache/commitdiff
Eliminate needless variable that wasn't initialized anyway.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 25 Jan 2002 05:39:21 +0000 (05:39 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 25 Jan 2002 05:39:21 +0000 (05:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93023 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index 0526ea5d65b3ffd2fc88e9c2f43525217cfda16a..cf997d6f2bf40a7f125b03a93a90a27d202a45a9 100644 (file)
@@ -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;