aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-09-12 16:34:16 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-09-12 16:34:16 +0200
commit22085f7d6e8592b771dafd57673d875c73303f4f (patch)
tree4cb977f4d3c8c0daa392d3eb417a454e350ae4a0
parent2c1b4e74e407bb729cdf7c522d0fe0c94f97963c (diff)
inflate_stream: remove redundant check that is always true
-rw-r--r--lib/content_encoding.c4
1 files changed, 3 insertions, 1 deletions
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;
}