From: Daniel Stenberg Date: Sun, 12 Sep 2010 14:34:16 +0000 (+0200) Subject: inflate_stream: remove redundant check that is always true X-Git-Tag: curl-7_21_2~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22085f7d6e8592b771dafd57673d875c73303f4f;p=curl inflate_stream: remove redundant check that is always true --- 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; }