summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/example.c b/test/example.c
index e69aaaf..cb9e87a 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;