From 7df877eccdd826e94df53215f65dee639428e83f Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:27:08 -0700 Subject: zlib 1.2.3.7 --- inflate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inflate.c') diff --git a/inflate.c b/inflate.c index 40c0ec8..a8431ab 100644 --- a/inflate.c +++ b/inflate.c @@ -1,5 +1,5 @@ /* inflate.c -- zlib decompression - * Copyright (C) 1995-2009 Mark Adler + * Copyright (C) 1995-2010 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -154,7 +154,7 @@ int windowBits; /* set number of window bits, free window if different */ if (windowBits && (windowBits < 8 || windowBits > 15)) return Z_STREAM_ERROR; - if (state->wbits != (unsigned)windowBits && state->window != Z_NULL) { + if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) { ZFREE(strm, state->window); state->window = Z_NULL; } -- cgit v1.2.3-55-g6feb