From 22085f7d6e8592b771dafd57673d875c73303f4f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 12 Sep 2010 16:34:16 +0200 Subject: inflate_stream: remove redundant check that is always true --- lib/content_encoding.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/content_encoding.c b/lib/content_encoding.c index f8c9234d9..6fb7c8d3a 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -123,7 +123,9 @@ inflate_stream(struct connectdata *conn, } /* Done with these bytes, exit */ - if(status == Z_OK && z->avail_in == 0) { + + /* status is always Z_OK at this point! */ + if(z->avail_in == 0) { free(decomp); return result; } -- cgit v1.2.3