summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 10:18:28 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:42 +0200
commitb10464399b6d63a9e9a2daa92eb737603dc10509 (patch)
tree0bfed12bfbf7507b0519e182d95630061c866c44
parent8f593f6d3bbd5140fbe8ad4cea780197869e4a22 (diff)
downloadcurl-b10464399b6d63a9e9a2daa92eb737603dc10509.tar.gz
urlapi: part of conditional expression is always true: (relurl[0] == '/')
Fixes warning detected by PVS-Studio Fixes #4374
-rw-r--r--lib/urlapi.c2
1 files changed, 1 insertions, 1 deletions
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;