From: Daniel Stenberg Date: Thu, 2 Feb 2023 19:56:34 +0000 (+0100) Subject: urlapi: remove pathlen assignment X-Git-Tag: curl-7_88_0~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37554d7c07dae1544f39bd967480dda6fe057fca;p=thirdparty%2Fcurl.git urlapi: remove pathlen assignment "Value stored to 'pathlen' is never read" Follow-up to 804d5293f89 Reported-by: Kvarec Lezki Closes #10405 --- 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) {