url.c: remove two variable assigns that are never read

Pointed out by scan-build

Closes #7248
This commit is contained in:
Daniel Stenberg 2021-06-12 18:33:59 +02:00
parent 791937b881
commit 73f52ad763
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -3069,8 +3069,6 @@ static CURLcode parse_connect_to_host_port(struct Curl_easy *data,
if((endp && *endp) || (portparse < 0) || (portparse > 65535)) {
failf(data, "No valid port number in connect to host string (%s)",
host_portno);
hostptr = NULL;
port = -1;
result = CURLE_SETOPT_OPTION_SYNTAX;
goto error;
}