]> granicus.if.org Git - curl/commitdiff
Curl_pp_readresp: remove superfluous assignment
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Oct 2014 20:42:15 +0000 (22:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 24 Oct 2014 06:23:19 +0000 (08:23 +0200)
Variable already assigned a few lines up.

Detected by cppcheck.

lib/pingpong.c

index c7e89d0a828a84a87bcc26ebefe16326bc276cf6..adfb50a63db4d0372ca03175343a28f0618f6dc1 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -285,8 +285,6 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd,
   /* number of bytes in the current line, so far */
   perline = (ssize_t)(ptr-pp->linestart_resp);
 
-  keepon=TRUE;
-
   while((pp->nread_resp<BUFSIZE) && (keepon && !result)) {
 
     if(pp->cache) {