projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
# Install the manual page of bcftools.
[samtools.git]
/
bcftools
/
bcf.c
diff --git
a/bcftools/bcf.c
b/bcftools/bcf.c
index fd5c0c9ae24971f15168f488452afe2077258dd0..6e45695cfb8c35a22dc4699728e445129293a699 100644
(file)
--- a/
bcftools/bcf.c
+++ b/
bcftools/bcf.c
@@
-181,7
+181,7
@@
int bcf_read(bcf_t *bp, const bcf_hdr_t *h, bcf1_t *b)
}
bgzf_read(bp->fp, b->str, b->l_str);
l = 12 + b->l_str;
-
bcf_sync(b)
;
+
if (bcf_sync(b) < 0) return -2
;
for (i = 0; i < b->n_gi; ++i) {
bgzf_read(bp->fp, b->gi[i].data, b->gi[i].len * h->n_smpl);
l += b->gi[i].len * h->n_smpl;