From: Daniel Stenberg Date: Sat, 12 Jun 2021 16:33:59 +0000 (+0200) Subject: url.c: remove two variable assigns that are never read X-Git-Tag: curl-7_78_0~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73f52ad7631ca4bd5449e5c4eb17cefcb28edc37;p=thirdparty%2Fcurl.git url.c: remove two variable assigns that are never read Pointed out by scan-build Closes #7248 --- diff --git a/lib/url.c b/lib/url.c index 27ba7d6b52..e923357724 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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; }