From ad4ae2013bd92c11113afb0d1f6db3ba1724896c Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Sun, 6 Oct 2019 10:14:42 -0700 Subject: Fixed use of uninitialized value in test_deflate_copy when deflateCopy is called. #438 --- test/example.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/example.c') diff --git a/test/example.c b/test/example.c index e69aaafdd5..cb9e87a390 100644 --- a/test/example.c +++ b/test/example.c @@ -601,6 +601,8 @@ void test_deflate_copy(unsigned char *compr, size_t comprLen) int err; size_t len = strlen(hello)+1; + memset(&c_stream, 0, sizeof(c_stream)); + c_stream.zalloc = zalloc; c_stream.zfree = zfree; c_stream.opaque = (voidpf)0; -- cgit 0.0.5-2-1-g0f52