]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urlapi: remove pathlen assignment
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 Feb 2023 19:56:34 +0000 (20:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Feb 2023 07:20:21 +0000 (08:20 +0100)
"Value stored to 'pathlen' is never read"

Follow-up to 804d5293f89

Reported-by: Kvarec Lezki
Closes #10405

lib/urlapi.c

index 0ddc5b8e12dd6484cac70de86b5398614d881f09..480ebc9a8f0ef8e9b70a2cc79df6939c1c048fb3 100644 (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) {