aboutsummaryrefslogtreecommitdiff
path: root/lib/file.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-04-16 22:52:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-04-16 22:52:49 +0200
commit01fc53e027efc9c9217be0b773c7a49f97291add (patch)
treefb6db25324a236db77612c5b9c9cc4a84bfa35e2 /lib/file.c
parent0a4ccce054c8b47642e01055bf6c8531c9e2a07f (diff)
file_range: Value stored to 'totalsize' is never read
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/file.c b/lib/file.c
index 6c14ee8e6..f96f8f51a 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -161,11 +161,10 @@ static CURLcode file_range(struct connectdata *conn)
}
else if(from < 0) {
/* -Y */
- totalsize = -from;
data->req.maxdownload = -from;
data->state.resume_from = from;
DEBUGF(infof(data, "RANGE the last %" FORMAT_OFF_T " bytes\n",
- totalsize));
+ -from));
}
else {
/* X-Y */