← Commit list

b48d02179a

Daniel Stenberg
Daniel Stenberg
2026-02-27
SUCCESS Duration: 318s

Subject

ftp: remove two redundant assignments

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/ftp.c+0 -3
@@ -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;
}
}