mirror of
https://github.com/curl/curl.git
synced 2026-06-10 00:04:20 +03:00
fix unused assignment in setup_connection_internals
This commit is contained in:
parent
db49514c45
commit
d4fcbfff68
1 changed files with 2 additions and 9 deletions
11
lib/url.c
11
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue