gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 52/222: urlapi: part of conditional expression is always true: (


From: gnunet
Subject: [gnurl] 52/222: urlapi: part of conditional expression is always true: (relurl[0] == '/')
Date: Thu, 07 Nov 2019 00:09:08 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit b10464399b6d63a9e9a2daa92eb737603dc10509
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 10:18:28 2019 +0200

    urlapi: part of conditional expression is always true: (relurl[0] == '/')
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
---
 lib/urlapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/urlapi.c b/lib/urlapi.c
index 6e414cf18..779ca3f78 100644
--- a/lib/urlapi.c
+++ b/lib/urlapi.c
@@ -351,7 +351,7 @@ static char *concat_url(const char *base, const char 
*relurl)
   else {
     /* We got a new absolute path for this server */
 
-    if((relurl[0] == '/') && (relurl[1] == '/')) {
+    if(relurl[1] == '/') {
       /* the new URL starts with //, just keep the protocol part from the
          original one */
       *protsep = 0;

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



reply via email to

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