]> granicus.if.org Git - curl/commitdiff
http: fix Expression 'http->postdata' is always false
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Sep 2019 07:10:05 +0000 (09:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Sep 2019 06:06:47 +0000 (08:06 +0200)
Fixes warning detected by PVS-Studio
Fixes #4374
Reported-by: Valerii Zapodovnikov
lib/http.c

index eca142af4c704c1f8c532c2d88fef8d29734f3cb..de16f6e6b4ab507ed58810f65bdc5e1a0d89dc39 100644 (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;