aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-23 13:22:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-23 13:22:47 +0000
commit41362f063a1d422074099d1331a7a62163ec41ca (patch)
treefb665a5f2d40b620360989f5aa907360ed118e11 /src
parent5b3069e265d898f357a48840bcd9430236ca1fe5 (diff)
fix resume when multiple files were specified
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 37c63b6f1..06fcbe5b8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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) {