]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.6-11 (r477)
authorHeng Li <lh3@live.co.uk>
Sat, 10 Oct 2009 10:12:26 +0000 (10:12 +0000)
committerHeng Li <lh3@live.co.uk>
Sat, 10 Oct 2009 10:12:26 +0000 (10:12 +0000)
 * fixed a bug due to recent change in bam_index.c (thank Nicole Washington for the patch)

bam_index.c
bamtk.c

index 4606d6b1107f1c901d5961be1309e0c87e69d674..a6278843583c605799360affb0b9c3c21fbd02c4 100644 (file)
@@ -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 042f78daf9ae67868856e823271112fb1d6bb9bb..bf58871f70187c7660b150e71021186c39901d0a 100644 (file)
--- 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[]);