1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 03:55:03 -05:00

http: fix Expression 'http->postdata' is always false

Fixes warning detected by PVS-Studio
Fixes #4374
Reported-by: Valerii Zapodovnikov
This commit is contained in:
Daniel Stenberg 2019-09-19 09:10:05 +02:00
parent 0d59addff6
commit 69ea985d4c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;