]> granicus.if.org Git - curl/commitdiff
file_range: Value stored to 'totalsize' is never read
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 20:52:49 +0000 (22:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 20:52:49 +0000 (22:52 +0200)
lib/file.c

index 6c14ee8e6a5af2394e1258afd3badfd95a32c95f..f96f8f51a7ccc6d7702c6cc2a36547a996ba0189 100644 (file)
@@ -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 */