Commit 1860cb6
Fix memset bugs in bam2bcf_iaux.c and bam2bcf.c
In bam2bcf_iaux.c, the memset after the first pass was zeroing `aux`
(the nucleotide frequency counts) instead of `cns` (the consensus output
buffer). This caused the consensus-building loop to see all-zero counts
and produce 'N' for every position, discarding all insertion data.
In bam2bcf.c, remove a duplicate memset(call->SCR, ...) that was a
copy-paste error (two identical lines in a row).1 parent 0486a68 commit 1860cb6
2 files changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments