diff options
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r-- | gcc/java/jcf-io.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index c50ec49ccc5..0fe30b30ca5 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -202,9 +202,7 @@ read_zip_member (JCF *jcf, ZipDirectory *zipd, ZipFile *zipf) { char *buffer; z_stream d_stream; /* decompression stream */ - d_stream.zalloc = (alloc_func) 0; - d_stream.zfree = (free_func) 0; - d_stream.opaque = (voidpf) 0; + memset (&d_stream, 0, sizeof (d_stream)); jcf->buffer = XNEWVEC (unsigned char, zipd->uncompressed_size); d_stream.next_out = jcf->buffer; |