diff src/dmzlib.c @ 1134:d0898867ec4c

Various fixes for issues reported by clang static analyzer.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Mar 2015 08:38:19 +0200
parents 043b5942fdb6
children 848a88ce7a57
line wrap: on
line diff
--- a/src/dmzlib.c	Wed Mar 04 07:16:06 2015 +0200
+++ b/src/dmzlib.c	Wed Mar 04 08:38:19 2015 +0200
@@ -406,6 +406,7 @@
     }
 
     // Get lengths table (uninitialized entries should be set to 0)
+    codeLengths[256] = 0;
     memset(codeLengthSizes, 0, sizeof(codeLengthSizes));
     for (i = 0; i < hclen; i++)
     {