diff --git a/lib/urlapi.c b/lib/urlapi.c index 0ddc5b8e12..480ebc9a8f 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -1207,7 +1207,6 @@ static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags) if(pathlen <= 1) { /* there is no path left or just the slash, unset */ path = NULL; - pathlen = 0; } else { if(!u->path) {