From 37554d7c07dae1544f39bd967480dda6fe057fca Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 2 Feb 2023 20:56:34 +0100 Subject: [PATCH] urlapi: remove pathlen assignment "Value stored to 'pathlen' is never read" Follow-up to 804d5293f89 Reported-by: Kvarec Lezki Closes #10405 --- lib/urlapi.c | 1 - 1 file changed, 1 deletion(-) 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) { -- 2.47.3