projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1b4e7
)
inflate_stream: remove redundant check that is always true
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 12 Sep 2010 14:34:16 +0000
(16:34 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 12 Sep 2010 14:34:16 +0000
(16:34 +0200)
lib/content_encoding.c
patch
|
blob
|
history
diff --git
a/lib/content_encoding.c
b/lib/content_encoding.c
index
f8c9234
..
6fb7c8d
100644
(file)
--- 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;
}