mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
curl_share_cleanup: avoid compiler warning
Move the variable declaration to within the #ifdef
This commit is contained in:
parent
5c809178c2
commit
ca2c326361
@ -175,7 +175,6 @@ CURLSHcode
|
|||||||
curl_share_cleanup(CURLSH *sh)
|
curl_share_cleanup(CURLSH *sh)
|
||||||
{
|
{
|
||||||
struct Curl_share *share = (struct Curl_share *)sh;
|
struct Curl_share *share = (struct Curl_share *)sh;
|
||||||
unsigned int i;
|
|
||||||
|
|
||||||
if(share == NULL)
|
if(share == NULL)
|
||||||
return CURLSHE_INVALID;
|
return CURLSHE_INVALID;
|
||||||
@ -200,6 +199,7 @@ curl_share_cleanup(CURLSH *sh)
|
|||||||
|
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
if(share->sslsession) {
|
if(share->sslsession) {
|
||||||
|
unsigned int i;
|
||||||
for(i = 0; i < share->nsslsession; ++i)
|
for(i = 0; i < share->nsslsession; ++i)
|
||||||
Curl_ssl_kill_session(&(share->sslsession[i]));
|
Curl_ssl_kill_session(&(share->sslsession[i]));
|
||||||
free(share->sslsession);
|
free(share->sslsession);
|
||||||
|
Loading…
Reference in New Issue
Block a user