From 03c4eec1d4450f5ef3f4bff141665a153c309a0b Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 9 May 2015 21:27:12 +0200 Subject: [PATCH] Unitialised variable found by valgrind. --- src/encoding/deflate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/encoding/deflate.c b/src/encoding/deflate.c index 6a9b4589c..27d5b8399 100644 --- a/src/encoding/deflate.c +++ b/src/encoding/deflate.c @@ -62,6 +62,7 @@ deflate_open(int window_size, struct stream_encoded *stream, int fd) data->fdread = fd; data->last_read = 0; data->after_first_read = 0; + data->after_end = 0; err = inflateInit2(&data->deflate_stream, window_size); if (err != Z_OK) {