aboutsummaryrefslogtreecommitdiff
path: root/src/libflate
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-04-30 07:24:53 -0700
committerRuss Cox <rsc@swtch.com>2009-04-30 07:24:53 -0700
commit995e570976b02ba08f2fc1093a7127ea2acbaff2 (patch)
treecc9f6eda1cdef1024668a7a3f1f454490f9f3328 /src/libflate
parent00d2ebe90319393a1c1d48e0a2bf1d102384ffe7 (diff)
downloadplan9port-995e570976b02ba08f2fc1093a7127ea2acbaff2.tar.gz
plan9port-995e570976b02ba08f2fc1093a7127ea2acbaff2.tar.bz2
plan9port-995e570976b02ba08f2fc1093a7127ea2acbaff2.zip
libflate: shut up valgrind
Diffstat (limited to 'src/libflate')
-rw-r--r--src/libflate/deflate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libflate/deflate.c b/src/libflate/deflate.c
index 15a186af..ceaa77f4 100644
--- a/src/libflate/deflate.c
+++ b/src/libflate/deflate.c
@@ -1132,6 +1132,8 @@ mkprecode(Huff *tab, ulong *count, int n, int maxbits, ulong *bitcount)
Chain *c;
int i, m, em, bits;
+ memset(&cs, 0, sizeof cs);
+
/*
* set up the sorted list of leaves
*/