ftp: remove two redundant assignments

Follow-up to 29bca12978

Pointed out by CodeSonar

Closes #20755
This commit is contained in:
Daniel Stenberg 2026-02-27 07:54:58 +01:00
parent b2076d3c2f
commit b48d02179a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;
}
}