=?UTF-8?Q?Michael=20M=C3=BCller=20?=: winhttp: Remove unused variable in read_reply().

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 12 09:17:54 CDT 2015


Module: wine
Branch: master
Commit: a533bf26ce1f27e2df2f438f8896ba3f26ccab5a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a533bf26ce1f27e2df2f438f8896ba3f26ccab5a

Author: Michael Müller <michael at fds-team.de>
Date:   Mon Aug 10 18:34:06 2015 +0200

winhttp: Remove unused variable in read_reply().

---

 dlls/winhttp/request.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 740a582..607b502 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -2092,19 +2092,17 @@ static BOOL read_reply( request_t *request )
     static const WCHAR crlf[] = {'\r','\n',0};
 
     char buffer[MAX_REPLY_LEN];
-    DWORD buflen, len, offset, received_len, crlf_len = 2; /* strlenW(crlf) */
+    DWORD buflen, len, offset, crlf_len = 2; /* strlenW(crlf) */
     char *status_code, *status_text;
     WCHAR *versionW, *status_textW, *raw_headers;
     WCHAR status_codeW[4]; /* sizeof("nnn") */
 
     if (!netconn_connected( &request->netconn )) return FALSE;
 
-    received_len = 0;
     do
     {
         buflen = MAX_REPLY_LEN;
         if (!read_line( request, buffer, &buflen )) return FALSE;
-        received_len += buflen;
 
         /* first line should look like 'HTTP/1.x nnn OK' where nnn is the status code */
         if (!(status_code = strchr( buffer, ' ' ))) return FALSE;
@@ -2157,7 +2155,6 @@ static BOOL read_reply( request_t *request )
 
         buflen = MAX_REPLY_LEN;
         if (!read_line( request, buffer, &buflen )) return TRUE;
-        received_len += buflen;
         if (!*buffer) break;
 
         while (len - offset < buflen + crlf_len)




More information about the wine-cvs mailing list