]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshzlib.c
Protect against a (non-security-related) buffer overrun if PuTTY is
[PuTTY.git] / sshzlib.c
index 94f0b80c8207d4d2343dfe8ed4fac39b8f457473..9c80132514f1eb9ea057515ab803edccbfcf5c27 100644 (file)
--- a/sshzlib.c
+++ b/sshzlib.c
@@ -224,6 +224,7 @@ static void lz77_compress(struct LZ77Context *ctx,
     }
     st->npending -= i;
 
+    defermatch.distance = 0; /* appease compiler */
     defermatch.len = 0;
     deferchr = '\0';
     while (len > 0) {