diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2008-02-25 16:53:56 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2008-02-25 16:53:56 +0000 |
commit | 41aed921b5e1634d6e03be21167ac31ba001dc0d (patch) | |
tree | d3fe68cd9284ce19424fe85d6c405450891e976b /usr.bin/compress/main.c | |
parent | 1f55106df3de2bc9974091b3f5c0f122a587e7bd (diff) |
For the -l flag, set testmode to 1 instead of incrementing it. Fixes
a bogus error message problem when the -t and -l flags are used together.
OK miod@
Diffstat (limited to 'usr.bin/compress/main.c')
-rw-r--r-- | usr.bin/compress/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c index bbb10313b99..35f30642ec6 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.70 2007/04/04 13:29:45 millert Exp $ */ +/* $OpenBSD: main.c,v 1.71 2008/02/25 16:53:55 millert 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.70 2007/04/04 13:29:45 millert Exp $"; +static const char main_rcsid[] = "$OpenBSD: main.c,v 1.71 2008/02/25 16:53:55 millert Exp $"; #endif #include <sys/param.h> @@ -234,7 +234,7 @@ main(int argc, char *argv[]) break; case 'l': list++; - testmode++; + testmode = 1; decomp++; break; case 'n': |