X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bcftools%2Fbcf.c;h=c3313881ef90fc2930c72d218c090b35e5cf9466;hb=d77625704ad9a593a8ec60f7243d0cc1eebc855e;hp=2cb98761cf570d7e6ba6260217977c536158301e;hpb=b65b44f2a48848bfcc1c1f2e738251819bcbb518;p=samtools.git diff --git a/bcftools/bcf.c b/bcftools/bcf.c index 2cb9876..c331388 100644 --- a/bcftools/bcf.c +++ b/bcftools/bcf.c @@ -223,6 +223,7 @@ void bcf_fmt_core(const bcf_hdr_t *h, bcf1_t *b, kstring_t *s) fmt_str(b->fmt, s); } x = b->n_alleles * (b->n_alleles + 1) / 2; + if (b->n_gi == 0) return; for (j = 0; j < h->n_smpl; ++j) { kputc('\t', s); for (i = 0; i < b->n_gi; ++i) {