diff options
Diffstat (limited to 'gzread.c')
-rw-r--r-- | gzread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||