X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=util%2Fzlib-extra.c;h=2d2d24145ad1bb97d31c5ff6a3e6b117f8bb31ee;hb=b4f593e0e6288666e64d4f3d2651076f5eef1074;hp=f691cccf2a336e5f2785a5daf8da7f8cc0612a25;hpb=60ddce8a161772583e8d223498997ee866d04ede;p=notmuch diff --git a/util/zlib-extra.c b/util/zlib-extra.c index f691cccf..2d2d2414 100644 --- a/util/zlib-extra.c +++ b/util/zlib-extra.c @@ -47,6 +47,7 @@ gz_getline (void *talloc_ctx, char **bufptr, ssize_t *bytes_read, gzFile stream) int zlib_status = 0; (void) gzerror (stream, &zlib_status); switch (zlib_status) { + case Z_STREAM_END: case Z_OK: /* no data read before EOF */ if (offset == 0) @@ -80,7 +81,7 @@ const char * gz_error_string (util_status_t status, gzFile file) { if (status == UTIL_GZERROR) - return gzerror (file, NULL); + return gzerror_str (file); else return util_error_string (status); }