gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 43/222: url: remove dead code


From: gnunet
Subject: [gnurl] 43/222: url: remove dead code
Date: Thu, 07 Nov 2019 00:08:59 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 389426e3d0d8b3b47cdc1ff18eb5a9a00a766615
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 09:29:02 2019 +0200

    url: remove dead code
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
---
 lib/url.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/lib/url.c b/lib/url.c
index e4c1ac838..e4c47930a 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2761,13 +2761,6 @@ static CURLcode set_login(struct connectdata *conn)
       result = CURLE_OUT_OF_MEMORY;
   }
 
-  /* if there's a user without password, consider password blank */
-  if(conn->user && !conn->passwd) {
-    conn->passwd = strdup("");
-    if(!conn->passwd)
-      result = CURLE_OUT_OF_MEMORY;
-  }
-
   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]