From: Guido Draheim Date: Sun, 21 Dec 2003 01:53:50 +0000 (+0000) Subject: zziplib-Patches-859172 X-Git-Tag: v0.13.36~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=440cc1a9c92635e467a3cdc55b4275167d5ef795;p=zziplib zziplib-Patches-859172 (file.c) --- diff --git a/zzip/file.c b/zzip/file.c index bbf6592..40bc0b5 100644 --- a/zzip/file.c +++ b/zzip/file.c @@ -48,7 +48,6 @@ zzip_file_close(ZZIP_FILE * fp) ZZIP_DIR * dir = fp->dir; if (fp->method) - inflateEnd(&fp->d_stream); /* inflateEnd() can be called many times */ if (fp->buf32k) @@ -835,9 +834,7 @@ zzip_rewind(ZZIP_FILE *fp) if (fp->method) { /* method == 8, deflate */ - inflateEnd(&fp->d_stream); - memset(&fp->d_stream, 0, sizeof fp->d_stream); - err = inflateInit2(&fp->d_stream, -MAX_WBITS); + err = inflateReset(&fp->d_stream); if (err != Z_OK) { goto error; } fp->crestlen = fp->csize;