]> granicus.if.org Git - curl/commitdiff
fix resume when multiple files were specified
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2002 13:22:47 +0000 (13:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2002 13:22:47 +0000 (13:22 +0000)
src/main.c

index 37c63b6f150d7d20be42c05c740204b686a8e1a0..06fcbe5b8b0cd204d5b38125d1f547d6b7e34ed0 100644 (file)
@@ -2505,11 +2505,12 @@ operate(struct Configurable *config, int argc, char *argv[])
           struct stat fileinfo;
 
 /*VMS?? -- Danger, the filesize is only valid for stream files */
-          if(0 == stat(outfile, &fileinfo)) {
+          if(0 == stat(outfile, &fileinfo))
             /* set offset to current file size: */
             config->resume_from = fileinfo.st_size;
-          }
-          /* else let offset remain 0 */
+          else
+            /* let offset be 0 */
+            config->resume_from = 0;
         }
       
         if(config->resume_from) {