aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-06 07:59:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-06 07:59:16 +0000
commite5165af5a68b5b057521e12993bbcf7ef2a4d99e (patch)
tree3cdf0d6b3af4b1191b4cafa59e15d984c6ef8c09 /lib/transfer.c
parent83e878420ae82aaaed1b8451e587aa1fc89accc2 (diff)
The MIPSPro compiler complains on constructs such as "(void)foo;" so
we avoid it where possible.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 707895fde..1c9a474a7 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1434,20 +1434,19 @@ Transfer(struct connectdata *conn)
CURLcode Curl_pretransfer(struct SessionHandle *data)
{
- CURLcode res;
if(!data->change.url)
/* we can't do anything wihout URL */
return CURLE_URL_MALFORMAT;
#ifdef USE_SSLEAY
- /* Init the SSL session ID cache here. We do it here since we want to
- do it after the *_setopt() calls (that could change the size) but
- before any transfer. */
- res = Curl_SSL_InitSessions(data, data->set.ssl.numsessions);
- if(res)
- return res;
-#else
- (void)res;
+ {
+ /* Init the SSL session ID cache here. We do it here since we want to do
+ it after the *_setopt() calls (that could change the size of the cache)
+ but before any transfer takes place. */
+ CURLcode res = Curl_SSL_InitSessions(data, data->set.ssl.numsessions);
+ if(res)
+ return res;
+ }
#endif
data->set.followlocation=0; /* reset the location-follow counter */