1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:14:45 -07:00
go/src/compress
Joe Tsai 4ae4e81c2c compress/gzip: fix Reader.Reset
Rather than specifying every field that should be cleared in Reset,
it is better to just zero the entire struct and only preserve or set the
fields that we actually care about. This ensures that the Header field
is reset for the next use.

Fixes #15077

Change-Id: I41832e506d2d64c62b700aa1986e7de24a577511
Reviewed-on: https://go-review.googlesource.com/21465
Run-TryBot: Joe Tsai <joetsai@digital-static.net>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-04-02 23:36:21 +00:00
..
bzip2 all: delete dead non-test code 2016-03-25 06:28:13 +00:00
flate all: use bytes.Equal, bytes.Contains and strings.Contains 2016-04-01 02:05:01 +00:00
gzip compress/gzip: fix Reader.Reset 2016-04-02 23:36:21 +00:00
lzw build: shorten a few packages with long tests 2015-12-29 15:46:44 +00:00
testdata build: shorten a few packages with long tests 2015-12-29 15:46:44 +00:00
zlib compress/zlib: make errors persistent 2016-03-07 18:32:04 +00:00