aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-02-02 11:50:11 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-02-02 11:50:11 +0200
commitdd7c3841ff78cb94ce02b0220c6e4748460970f7 (patch)
tree6abee5d3d6728821cef282a3216ff353b28985e1 /src
parentUpdated TODO. (diff)
downloadxz-dd7c3841ff78cb94ce02b0220c6e4748460970f7.tar.xz
Fix wrong assertion.
This was added in 455e68c030fde8a8c2f5e254c3b3ab9489bf3735.
Diffstat (limited to '')
-rw-r--r--src/xz/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xz/main.c b/src/xz/main.c
index 842f5eaf..c5330039 100644
--- a/src/xz/main.c
+++ b/src/xz/main.c
@@ -253,9 +253,10 @@ main(int argc, char **argv)
// All files have now been handled. If in --list mode, display
// the totals before exiting. We don't have signal handlers
// enabled in --list mode, so we don't need to check user_abort.
- assert(!user_abort);
- if (opt_mode == MODE_LIST)
+ if (opt_mode == MODE_LIST) {
+ assert(!user_abort);
list_totals();
+ }
// If we have got a signal, raise it to kill the program instead
// of calling tuklib_exit().