projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 0.1.11
[samtools.git]
/
bam_index.c
diff --git
a/bam_index.c
b/bam_index.c
index 1ad2e93e5051972b084513d5d7391c45c6cf7bf2..f60a6f874b106f03c655d1207dddf21c4df7fc48 100644
(file)
--- a/
bam_index.c
+++ b/
bam_index.c
@@
-608,6
+608,9
@@
bam_iter_t bam_iter_query(const bam_index_t *idx, int tid, int beg, int end)
}
}
free(bins);
+ if (n_off == 0) {
+ free(off); return iter;
+ }
{
bam1_t *b = (bam1_t*)calloc(1, sizeof(bam1_t));
int l;