]> git.donarmstrong.com Git - samtools.git/commitdiff
* samtools-0.1.5-19 (r426)
authorHeng Li <lh3@live.co.uk>
Fri, 31 Jul 2009 22:32:09 +0000 (22:32 +0000)
committerHeng Li <lh3@live.co.uk>
Fri, 31 Jul 2009 22:32:09 +0000 (22:32 +0000)
 * fixed a bug caused by recent modifications. Sorry.

bamtk.c
sam_view.c

diff --git a/bamtk.c b/bamtk.c
index f827aecb07dab38749212ccbadf80cbf6131e6c6..b39796fbfc16e01e98f83aee32309366de56e3d6 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -4,7 +4,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.5-18 (r423)"
+#define PACKAGE_VERSION "0.1.5-19 (r426)"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);
index c2056bafecf266904172ddf68f40266329ba8bea..2e89921e0b1d6d2149d64239d706d53547df47ad 100644 (file)
@@ -77,9 +77,7 @@ int main_samview(int argc, char *argv[])
        if (argc == optind) return usage(is_long_help);
 
        // generate the fn_list if necessary
-       if (fn_list && fn_ref) {
-               fprintf(stderr, "[main_samview] both -t and -T are applied. -T is ignored.\n");
-       } else fn_list = samfaipath(fn_ref);
+       if (fn_list == 0 && fn_ref) fn_list = samfaipath(fn_ref);
        // open file handlers
        if ((in = samopen(argv[optind], in_mode, fn_list)) == 0) {
                fprintf(stderr, "[main_samview] fail to open file for reading.\n");