diff options
Diffstat (limited to 'archival/bunzip2.c')
-rw-r--r-- | archival/bunzip2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/bunzip2.c b/archival/bunzip2.c index a7b41b7d1..f2d514912 100644 --- a/archival/bunzip2.c +++ b/archival/bunzip2.c @@ -2373,11 +2373,11 @@ int bunzip2_main(int argc, char **argv) } if (uncompressStream(src_stream, dst_stream)) { - if (save_name != NULL) + if (!(flags & bunzip_to_stdout)) delete_name = argv[optind]; status = EXIT_SUCCESS; } else { - if (save_name != NULL) + if (!(flags & bunzip_to_stdout)) delete_name = save_name; status = EXIT_FAILURE; } |