diff options
Diffstat (limited to 'gzlib.c')
-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 */ |