mirror of
https://github.com/moparisthebest/curl
synced 2024-11-17 15:05:02 -05:00
urlapi: part of conditional expression is always true: (relurl[0] == '/')
Fixes warning detected by PVS-Studio Fixes #4374
This commit is contained in:
parent
8f593f6d3b
commit
b10464399b
@ -351,7 +351,7 @@ static char *concat_url(const char *base, const char *relurl)
|
|||||||
else {
|
else {
|
||||||
/* We got a new absolute path for this server */
|
/* 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
|
/* the new URL starts with //, just keep the protocol part from the
|
||||||
original one */
|
original one */
|
||||||
*protsep = 0;
|
*protsep = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user