From: Heng Li Date: Fri, 28 Oct 2011 19:16:40 +0000 (-0400) Subject: fixed a bug in reading X-Git-Tag: spawn-final~82 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=c499eb196c7268bf0fd0fc30c414e283c9e3b5a0;p=klib.git fixed a bug in reading --- diff --git a/bgzf.c b/bgzf.c index 79c3818..3bea718 100644 --- a/bgzf.c +++ b/bgzf.c @@ -352,7 +352,7 @@ int bgzf_read_block(BGZF *fp) return -1; } size += count; - if (inflate_block(fp, block_length) < 0) return -1; + if ((count = inflate_block(fp, block_length)) < 0) return -1; if (fp->block_length != 0) fp->block_offset = 0; // Do not reset offset if this read follows a seek. fp->block_address = block_address; fp->block_length = count;