gzip: don't use an uninitialized file descriptor
authorJim Meyering <meyering@redhat.com>
Sat, 26 Sep 2009 19:22:02 +0000 (21:22 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 26 Sep 2009 19:22:02 +0000 (21:22 +0200)
commitf17cbd13a1d0a7dcf067a1cdba89e9f668ce7d15
treea42707b6eb5985121694dd1e4fcb5ce63a6d958b
parenta1d3d4019ddd22436a6a4df68306fdac2dc553a3
gzip: don't use an uninitialized file descriptor

gzip interprets an argument of "-" as indicating stdin, but when
"-" is not the first name on the command line, it doesn't work.
* gzip.c (treat_stdin): Initialize "ifd".
Patch and fine description by Lasse Collin in
http://www.mail-archive.com/bug-gzip@gnu.org/msg00213.html
* Makefile.am (check-local): Exercise the fix.  Based on the above.
* NEWS (Bug fixes): Mention this.
Makefile.am
NEWS
gzip.c