projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c80917
)
curl_share_cleanup: avoid compiler warning
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 4 Oct 2011 14:34:45 +0000
(16:34 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 4 Oct 2011 14:34:45 +0000
(16:34 +0200)
Move the variable declaration to within the #ifdef
lib/share.c
patch
|
blob
|
history
diff --git
a/lib/share.c
b/lib/share.c
index 6f8ba49cdd22072a5681cf372af4460fa08c8290..59f33eb108ef42cb79710d574f78dc3fa1024f23 100644
(file)
--- 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);