diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-19 19:08:29 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-19 19:08:29 +0000 |
commit | 2b6a4685537262851ce35b32a967478ca49c87c4 (patch) | |
tree | 17be74deb06464fd641372cfdee5a4590f801862 | |
parent | 5b6fcbaa9a2418aba931d8ab87de9135db5aca70 (diff) |
initialization overwrites program name parsing
-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 41e81c8d3d6..791318ffeaf 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.5 1997/07/08 10:06:31 mickey Exp $ */ +/* $OpenBSD: main.c,v 1.6 1997/07/19 19:08:28 mickey Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.5 1997/07/08 10:06:31 mickey Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.6 1997/07/19 19:08:28 mickey Exp $"; #endif #endif /* not lint */ @@ -102,6 +102,7 @@ main(argc, argv) char *infile, outfile[MAXPATHLEN], suffix[16]; char *p; + bits = cat = decomp = 0; p = __progname; if (p[0] == 'g') { method = M_DEFLATE; @@ -124,7 +125,6 @@ main(argc, argv) errx(1, "unknown program name"); } - bits = cat = decomp = 0; outfile[0] = '\0'; while ((ch = getopt(argc, argv, "0123456789b:cdfghlnOo:qStv")) != -1) switch(ch) { |