Patch from Colin Watson intended to give a clean Unix compile with GCC 4.
[u/mdw/putty] / sshzlib.c
index 94f0b80..9c80132 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) {