From: Jay Satiro Date: Sun, 19 Nov 2023 23:06:55 +0000 (-0500) Subject: schannel: fix unused variable warning X-Git-Tag: curl-8_5_0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ac6023d367fe363190b7acbd0d7972143483a7b;p=thirdparty%2Fcurl.git schannel: fix unused variable warning Bug: https://github.com/curl/curl/pull/12349#issuecomment-1818000846 Reported-by: Viktor Szakats Closes https://github.com/curl/curl/pull/12361 --- diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index fc9a8cb714..ae7f2956da 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -1064,12 +1064,11 @@ schannel_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data) SECURITY_STATUS sspi_status = SEC_E_OK; struct Curl_schannel_cred *old_cred = NULL; CURLcode result; - const char *hostname = connssl->peer.hostname; DEBUGASSERT(backend); DEBUGF(infof(data, "schannel: SSL/TLS connection with %s port %d (step 1/3)", - hostname, connssl->port)); + connssl->peer.hostname, connssl->port)); if(curlx_verify_windows_version(5, 1, 0, PLATFORM_WINNT, VERSION_LESS_THAN_EQUAL)) {