aboutsummaryrefslogtreecommitdiff
path: root/src/xz/coder.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/xz/coder.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c
index 51cd3ef0..f952e80d 100644
--- a/src/xz/coder.c
+++ b/src/xz/coder.c
@@ -513,8 +513,12 @@ coder_init(file_pair *pair)
// is needed, because we don't want to do use
// passthru mode with --test.
if (opt_mode == MODE_DECOMPRESS
- && opt_stdout && opt_force)
+ && opt_stdout && opt_force) {
+ // These are needed for progress info.
+ strm.total_in = 0;
+ strm.total_out = 0;
return CODER_INIT_PASSTHRU;
+ }
ret = LZMA_FORMAT_ERROR;
break;