X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam_import.c;h=fccaa022208131b27093a2b44f32e74d13a469c0;hb=3ddb3942053df00fdae714e77cbc2f5618db617e;hp=c7f866701edd87f37e18fbc9768ed63f68be7f9e;hpb=34c418836df8a03e0eb5243b9240f55abab5bd08;p=samtools.git diff --git a/bam_import.c b/bam_import.c index c7f8667..fccaa02 100644 --- a/bam_import.c +++ b/bam_import.c @@ -154,6 +154,7 @@ int sam_header_parse_rg(bam_header_t *h) int n = 0; // free + if (h == 0) return 0; bam_strmap_destroy(h->rg2lib); h->rg2lib = 0; if (h->l_text < 3) return 0; // parse @RG lines