From e44a0d1dc8d32ac42b3d1d0e1d568b9af2f13b7b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 12 Feb 2007 05:24:34 +0000 Subject: [PATCH] * gzip.c (foreground): Initialize to zero. This doesn't fix a bug since C guarantees it's zero, but it's more consistent with the rest of the code. Problem reported by Mark Adler. --- ChangeLog | 6 ++++++ gzip.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index efbadb3..fbcd47d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-02-11 Paul Eggert + + * gzip.c (foreground): Initialize to zero. This doesn't fix a bug + since C guarantees it's zero, but it's more consistent with the + rest of the code. Problem reported by Mark Adler. + 2007-02-08 Paul Eggert * zdiff.in: Don't use '((' in a shell script, as it's not portable diff --git a/gzip.c b/gzip.c index 0d34b77..77b1c9d 100644 --- a/gzip.c +++ b/gzip.c @@ -199,7 +199,7 @@ int verbose = 0; /* be verbose (-v) */ int quiet = 0; /* be very quiet (-q) */ int do_lzw = 0; /* generate output compatible with old compress (-Z) */ int test = 0; /* test .gz file integrity */ -int foreground; /* set if program run in foreground */ +int foreground = 0; /* set if program run in foreground */ char *program_name; /* program name */ int maxbits = BITS; /* max bits per code for LZW */ int method = DEFLATED;/* compression method */ -- 2.47.2