-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix: use correct return value in bcf_get_format and bcf_get_info_values #398
fix: use correct return value in bcf_get_format and bcf_get_info_values #398
Conversation
Pull Request Test Coverage Report for Build 5327586180
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add one or two test cases which show that ret is the right thing to use and also works in case of multiple strings?
Another thing I noticed: It seems like we then simply have |
But Line 1455 in 261e3a3
|
I think this PR is ready for merging. |
According to the notes in htslib vcf header file:
I had a case that when accessing a format field of string type, even there was only one sample, I got two strings returned (albeit the second one was empty). With this change, the issue was fixed.