Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When an empty VCF file with a header but no data lines is indexed, tbx_seqnames() called via bcf_sr_add_reader() returns an empty list. Consequently, when bcf_sr_regions_next() is called and no in-memory regions are available, it attempts to read from a file which is not initialized. This fixes samtools/bcftools#2286
- Loading branch information