aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-10-04 16:34:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-10-04 16:34:45 +0200
commitca2c32636191ba33dbad91e88d8ceecc74bacbd1 (patch)
tree8321a1460ac491bcda8f7a06e587e03697998925 /lib
parent5c809178c2753e08c7c02081ea4e0c424e87ba30 (diff)
curl_share_cleanup: avoid compiler warning
Move the variable declaration to within the #ifdef
Diffstat (limited to 'lib')
-rw-r--r--lib/share.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/share.c b/lib/share.c
index 6f8ba49cd..59f33eb10 100644
--- a/lib/share.c
+++ b/lib/share.c
@@ -175,7 +175,6 @@ CURLSHcode
curl_share_cleanup(CURLSH *sh)
{
struct Curl_share *share = (struct Curl_share *)sh;
- unsigned int i;
if(share == NULL)
return CURLSHE_INVALID;
@@ -200,6 +199,7 @@ curl_share_cleanup(CURLSH *sh)
#ifdef USE_SSL
if(share->sslsession) {
+ unsigned int i;
for(i = 0; i < share->nsslsession; ++i)
Curl_ssl_kill_session(&(share->sslsession[i]));
free(share->sslsession);