From b48d02179acc7b274f9751420ca2e36a8329d0b0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 27 Feb 2026 07:54:58 +0100 Subject: [PATCH] ftp: remove two redundant assignments Follow-up to 29bca12978f3ad Pointed out by CodeSonar Closes #20755 --- lib/ftp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ftp.c b/lib/ftp.c index c234f35bac..4c98d86f23 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -933,7 +933,6 @@ static CURLcode ftp_port_parse_string(struct Curl_easy *data, #ifdef USE_IPV6 if(curlx_inet_pton(AF_INET6, string_ftpport, &sa6->sin6_addr) == 1) { /* ipv6 */ - port_min = port_max = 0; addrlen = strlen(string_ftpport); ip_end = NULL; /* this got no port ! */ } @@ -959,8 +958,6 @@ static CURLcode ftp_port_parse_string(struct Curl_easy *data, else port_max = port_min; } - else - port_max = port_min; } }