aboutsummaryrefslogtreecommitdiff
path: root/gzread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzread.c')
-rw-r--r--gzread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzread.c b/gzread.c
index cda7935..1e97e38 100644
--- a/gzread.c
+++ b/gzread.c
@@ -242,7 +242,7 @@ local int gz_fetch(state)
242 if (gz_decomp(state) == -1) 242 if (gz_decomp(state) == -1)
243 return -1; 243 return -1;
244 } 244 }
245 } while (state->x.have == 0); 245 } while (state->x.have == 0 && (!state->eof || strm->avail_in));
246 return 0; 246 return 0;
247} 247}
248 248