diff --git a/src/main.c b/src/main.c index 37c63b6f150d7d20be42c05c740204b686a8e1a0..06fcbe5b8b0cd204d5b38125d1f547d6b7e34ed0 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) {