-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use only _regions_add() when adding the list of contig names
Don't use _regions_init_string(), which misinterprets contig names containing colons as region specification strings. The code used _regions_init_string() rather than _regions_add() only when needed to allocate a new bcf_sr_regions_t structure; instead extract basic initialisation into a new bcf_sr_regions_alloc() function, which as a bonus checks the memory allocation. Use the new function throughout. Fixes samtools/bcftools#2179.
- Loading branch information
1 parent
292a35d
commit 9ad8270
Showing
1 changed file
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters