aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:54:12 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:28 +0200
commitcc95dbd64f35bc11c55c475d32012c5491e2f01b (patch)
tree270738e0f1d05370537cf8165577c72ffbe98451
parentd0390a538aa0ee220e865580f5cede7315c441fd (diff)
http_proxy: part of conditional expression is always true: !error
Fixes warning detected by PVS-Studio Fixes #4374
-rw-r--r--lib/http_proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index ba67b861b..710101774 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -327,7 +327,7 @@ static CURLcode CONNECT(struct connectdata *conn,
{ /* READING RESPONSE PHASE */
int error = SELECT_OK;
- while(s->keepon && !error) {
+ while(s->keepon) {
ssize_t gotbytes;
/* make sure we have space to read more data */