aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:10:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:06:47 +0200
commit69ea985d4c3ce1901a7b0a69f9e6c899cb762887 (patch)
treef3f20b8ba4a5dfaca4032e785e4e8527d611a9fa
parent0d59addff6af9d32b7b92b61ebd74915c2ff13e8 (diff)
http: fix Expression 'http->postdata' is always false
Fixes warning detected by PVS-Studio Fixes #4374 Reported-by: Valerii Zapodovnikov
-rw-r--r--lib/http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c
index eca142af4..de16f6e6b 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3041,8 +3041,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
failf(data, "Failed sending HTTP request");
else
/* HTTP GET/HEAD download: */
- Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE,
- http->postdata?FIRSTSOCKET:-1);
+ Curl_setup_transfer(data, FIRSTSOCKET, -1, TRUE, -1);
}
if(result)
return result;