From 73f52ad7631ca4bd5449e5c4eb17cefcb28edc37 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 Jun 2021 18:33:59 +0200 Subject: [PATCH] url.c: remove two variable assigns that are never read Pointed out by scan-build Closes #7248 --- lib/url.c | 2 -- 1 file changed, 2 deletions(-) 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; }