As we don't know where the compressed data end, only the size of the uncompressed data. Signed-off-by: Hervé Cauwelier <herve@xxxxxxxxxx> --- src/odb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/odb.c b/src/odb.c index 3cfc932..89ee1f2 100644 --- a/src/odb.c +++ b/src/odb.c @@ -432,7 +432,7 @@ static int inflate_buffer(void *in, size_t inlen, void *out, size_t outlen) inflateEnd(&zs); - if ((status != Z_STREAM_END) || (zs.avail_in != 0)) + if (status != Z_STREAM_END) return GIT_ERROR; if (zs.total_out != outlen) -- 1.6.4.4 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html