From: Heng Li Date: Sat, 10 Oct 2009 10:12:26 +0000 (+0000) Subject: * samtools-0.1.6-11 (r477) X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b05dd8729dac7187487219259f9d9ac1e425c6c8;p=samtools.git * samtools-0.1.6-11 (r477) * fixed a bug due to recent change in bam_index.c (thank Nicole Washington for the patch) --- diff --git a/bam_index.c b/bam_index.c index 4606d6b..a627884 100644 --- a/bam_index.c +++ b/bam_index.c @@ -542,6 +542,7 @@ int bam_fetch(bamFile fp, const bam_index_t *idx, int tid, int beg, int end, voi { int n_off; pair64_t *off = get_chunk_coordinates(idx, tid, beg, end, &n_off); + if (off == 0) return 0; { // retrive alignments uint64_t curr_off; diff --git a/bamtk.c b/bamtk.c index 042f78d..bf58871 100644 --- a/bamtk.c +++ b/bamtk.c @@ -9,7 +9,7 @@ #endif #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "0.1.6-10 (r474)" +#define PACKAGE_VERSION "0.1.6-11 (r477)" #endif int bam_taf2baf(int argc, char *argv[]);