Fix bug where gzopen(), gzclose() would write an empty file.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 30 Sep 2012 05:23:47 +0000 (22:23 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 30 Sep 2012 05:37:55 +0000 (22:37 -0700)
commit0cf495a1ca941428c0b11e2307cad760ae44993e
tree6fe9dc258ebf611ec6b809d49a97d8a21b8b6dce
parentbd143f1c0a24075b2ec063a91f7b2b4b3b3b6ad8
Fix bug where gzopen(), gzclose() would write an empty file.

A gzopen() to write (mode "w") followed immediately by a gzclose()
would output an empty zero-length file.  What it should do is write
an empty gzip file, with the gzip header, empty deflate content,
and gzip trailer totalling 20 bytes.  This fixes it to do that.
gzwrite.c