Skip to content
Snippets Groups Projects
Commit 59a30e6d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

prevent harmless compiler warning

parent e0287fea
No related branches found
No related tags found
No related merge requests found
......@@ -1856,9 +1856,6 @@ static CURLcode ConnectPlease(struct connectdata *conn,
static void verboseconnect(struct connectdata *conn,
struct Curl_dns_entry *dns)
{
#ifdef HAVE_INET_NTOA_R
char ntoa_buf[64];
#endif
struct SessionHandle *data = conn->data;
/* Figure out the ip-number and display the first host name it shows: */
......@@ -1896,6 +1893,9 @@ static void verboseconnect(struct connectdata *conn,
}
#else
{
#ifdef HAVE_INET_NTOA_R
char ntoa_buf[64];
#endif
Curl_addrinfo *hostaddr=dns?dns->addr:NULL;
struct in_addr in;
(void) memcpy(&in.s_addr, &conn->serv_addr.sin_addr, sizeof (in.s_addr));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment