gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 37/222: http: fix Expression 'http->postdata' is always false


From: gnunet
Subject: [gnurl] 37/222: http: fix Expression 'http->postdata' is always false
Date: Thu, 07 Nov 2019 00:08:53 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 69ea985d4c3ce1901a7b0a69f9e6c899cb762887
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 09:10:05 2019 +0200

    http: fix Expression 'http->postdata' is always false
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
    Reported-by: Valerii Zapodovnikov
---
 lib/http.c | 3 +--
 1 file changed, 1 insertion(+), 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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]