]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url.c: remove two variable assigns that are never read
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 Jun 2021 16:33:59 +0000 (18:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 13 Jun 2021 21:42:46 +0000 (23:42 +0200)
Pointed out by scan-build

Closes #7248

lib/url.c

index 27ba7d6b52ce341bcd148c6141e83a03b21e0b1d..e923357724574b00f7a6977f9fe5f8674476ca94 100644 (file)
--- 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;
       }