diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2019-04-13 17:05:16 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2019-04-13 17:08:50 -0700 |
commit | 79baebe50e4d6b73ae1f8b603f0ef41300110aa3 (patch) | |
tree | ce453518c642755fafd819d8e36ba0b79ceff069 /gzlib.c | |
parent | 0e96d8e7c7079ab9f07cc7b57ae3ca9de8c80742 (diff) | |
download | zlib-79baebe50e4d6b73ae1f8b603f0ef41300110aa3.tar.gz zlib-79baebe50e4d6b73ae1f8b603f0ef41300110aa3.tar.bz2 zlib-79baebe50e4d6b73ae1f8b603f0ef41300110aa3.zip |
Avoid adding empty gzip member after gzflush with Z_FINISH.
Diffstat (limited to '')
-rw-r--r-- | gzlib.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -81,6 +81,8 @@ local void gz_reset(state) | |||
81 | state->past = 0; /* have not read past end yet */ | 81 | state->past = 0; /* have not read past end yet */ |
82 | state->how = LOOK; /* look for gzip header */ | 82 | state->how = LOOK; /* look for gzip header */ |
83 | } | 83 | } |
84 | else /* for writing ... */ | ||
85 | state->reset = 0; /* no deflateReset pending */ | ||
84 | state->seek = 0; /* no seek request pending */ | 86 | state->seek = 0; /* no seek request pending */ |
85 | gz_error(state, Z_OK, NULL); /* clear error */ | 87 | gz_error(state, Z_OK, NULL); /* clear error */ |
86 | state->x.pos = 0; /* no uncompressed data yet */ | 88 | state->x.pos = 0; /* no uncompressed data yet */ |