]> git.donarmstrong.com Git - samtools.git/commitdiff
Release samtools-0.1.5b (BUG! so embarrassing!)
authorHeng Li <lh3@live.co.uk>
Tue, 7 Jul 2009 10:39:55 +0000 (10:39 +0000)
committerHeng Li <lh3@live.co.uk>
Tue, 7 Jul 2009 10:39:55 +0000 (10:39 +0000)
bamtk.c
sam.c

diff --git a/bamtk.c b/bamtk.c
index a8fea4b4a74591a489d48562dc5f5eaa4671c42f..536924c6c1d924795d52b282e2f711fe9828573a 100644 (file)
--- a/bamtk.c
+++ b/bamtk.c
@@ -4,7 +4,7 @@
 #include "bam.h"
 
 #ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION "0.1.5a (r381)"
+#define PACKAGE_VERSION "0.1.5b (r383)"
 #endif
 
 int bam_taf2baf(int argc, char *argv[]);
diff --git a/sam.c b/sam.c
index d53aa0eacd47b24ebf74629e7d15c5d88a6cfcc6..45cb05cf3dd6f8a04acfd4dd92c8d250835855a2 100644 (file)
--- a/sam.c
+++ b/sam.c
@@ -26,6 +26,7 @@ static void append_header_text(bam_header_t *header, char* text, int len)
 {
        int x = header->l_text + 1;
        int y = header->l_text + len + 1; // 1 byte null
+       if (text == 0) return;
        kroundup32(x); 
        kroundup32(y);
        if (x < y) header->text = (char*)realloc(header->text, y);