From d4fcbfff68a44d20d0a7521c3c9f5ded742d4b80 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 18 Jul 2025 13:28:33 +0200 Subject: [PATCH] fix unused assignment in setup_connection_internals --- lib/url.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/url.c b/lib/url.c index 33d3b4018a..7807389c3c 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2070,21 +2070,14 @@ static CURLcode setup_range(struct Curl_easy *data) static CURLcode setup_connection_internals(struct Curl_easy *data, struct connectdata *conn) { - const struct Curl_handler *p; const char *hostname; int port; CURLcode result; - /* Perform setup complement if some. */ - p = conn->handler; - - if(p->setup_connection) { - result = (*p->setup_connection)(data, conn); - + if(conn->handler->setup_connection) { + result = conn->handler->setup_connection(data, conn); if(result) return result; - - p = conn->handler; /* May have changed. */ } /* Now create the destination name */