summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-12 18:33:59 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-13 23:42:46 +0200
commit73f52ad7631ca4bd5449e5c4eb17cefcb28edc37 (patch)
tree4fe761b733e5054766b2c8fecab2d97445f7dbab /lib/url.c
parent791937b881177c07c6ab8f151723342b3b9167ce (diff)
downloadcurl-73f52ad7631ca4bd5449e5c4eb17cefcb28edc37.tar.gz
url.c: remove two variable assigns that are never read
Pointed out by scan-build Closes #7248
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 27ba7d6b5..e92335772 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;
}