urlapi: remove pathlen assignment

"Value stored to 'pathlen' is never read"

Follow-up to 804d5293f8

Reported-by: Kvarec Lezki

Closes #10405
This commit is contained in:
Daniel Stenberg 2023-02-02 20:56:34 +01:00
parent e1f78ce25b
commit 37554d7c07
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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) {