summaryrefslogtreecommitdiff
path: root/usr.bin/compress
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-02-07 08:37:29 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-02-07 08:37:29 +0000
commit8cc1f7eb535c966735be2acc399d9f4beca177fe (patch)
tree128cb3452732857da856dbaeab3caa77f355877a /usr.bin/compress
parent42c7d0a2be7091884fe998f73b42eeba5f096da9 (diff)
In list mode (which implies test mode), do not forget to initialize
uncompressed_name. Spotted by markus@; ok hshoexer@ millert@
Diffstat (limited to 'usr.bin/compress')
-rw-r--r--usr.bin/compress/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c
index 7ffeca51001..4fd0f7a78c7 100644
--- a/usr.bin/compress/main.c
+++ b/usr.bin/compress/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.57 2005/01/27 12:58:22 otto Exp $ */
+/* $OpenBSD: main.c,v 1.58 2005/02/07 08:37:28 otto Exp $ */
#ifndef SMALL
static const char copyright[] =
@@ -36,7 +36,7 @@ static const char license[] =
#endif /* SMALL */
#ifndef SMALL
-static const char main_rcsid[] = "$OpenBSD: main.c,v 1.57 2005/01/27 12:58:22 otto Exp $";
+static const char main_rcsid[] = "$OpenBSD: main.c,v 1.58 2005/02/07 08:37:28 otto Exp $";
#endif
#include <sys/param.h>
@@ -383,7 +383,7 @@ main(int argc, char *argv[])
if (cat)
strlcpy(outfile, "/dev/stdout", sizeof outfile);
- else if (!oflag && !testmode) {
+ else if (!oflag) {
if (decomp) {
if (set_outfile(infile, outfile,
sizeof outfile) == NULL) {