natsuhiko / rasqual

Robust Allele Specific Quantification and quality controL
37 stars 20 forks source link

potential bug in pasteFiles #58

Open xfanhuang opened 9 months ago

xfanhuang commented 9 months ago

I would occasionally get segmentation errors in pasteFiles and traced it back to https://github.com/natsuhiko/rasqual/blob/5aa553cf1b6501cf7ecd61a5efb34f7f20d354c6/src/ASVCF/pasteFiles.c#L125C2-L125C37 Instead of (i=0;i<K;i++){ret0[k]=is0[k]=0;}, should it be (i=0;i<K;i++){ret0[i]=is0[i]=0;}?