changeset 7168:e33119f2dfdc HEAD

Assert-crashfix.
author Timo Sirainen <tss@iki.fi>
date Sat, 19 Jan 2008 08:29:05 +0200
parents 93b1d16dc720
children b9d78196e9ba
files src/plugins/zlib/istream-zlib.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/zlib/istream-zlib.c	Sat Jan 19 08:07:11 2008 +0200
+++ b/src/plugins/zlib/istream-zlib.c	Sat Jan 19 08:29:05 2008 +0200
@@ -54,10 +54,8 @@
 			/* don't try to keep anything cached if we don't
 			   have a seek mark. */
 			i_stream_compress(stream);
-		}
-
-		if (stream->max_buffer_size == 0 ||
-		    stream->buffer_size < stream->max_buffer_size) {
+		} else if (stream->max_buffer_size == 0 ||
+			   stream->buffer_size < stream->max_buffer_size) {
 			/* buffer is full - grow it */
 			i_stream_grow_buffer(stream, I_STREAM_MIN_SIZE);
 		}