Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure number of modifications is always set in bam_parse_basemod2() #1647

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

daviesrob
Copy link
Member

Set state->nmods to 0 at the start, in case the function returns early. This ensures calls to bam_mods_at_next_pos() won't try to replay the mods from an earlier line.

Set state->nmods to 0 at the start, in case the function returns
early.  This ensures calls to bam_mods_at_next_pos() won't try to
replay the mods from an earlier line.
@jkbonfield
Copy link
Contributor

Thanks. Kind of suprising we haven't noticed this before.

@jkbonfield jkbonfield merged commit a809db7 into samtools:develop Jul 14, 2023
@daviesrob daviesrob deleted the base_mods branch July 14, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants