From b10464399b6d63a9e9a2daa92eb737603dc10509 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Sep 2019 10:18:28 +0200 Subject: 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; -- cgit v1.2.1