We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaa17b6 commit 4f08744Copy full SHA for 4f08744
1 file changed
sam.c
@@ -5980,12 +5980,12 @@ static void overlap_remove(bam_plp_t iter, const bam1_t *b)
5980
{
5981
if ( !iter->overlaps ) return;
5982
5983
- if ( b->core.flag&BAM_FUNMAP || !(b->core.flag&BAM_FPROPER_PAIR) ) //no need
5984
- return;
5985
-
5986
khiter_t kitr;
5987
if ( b )
5988
+ if ( b->core.flag&BAM_FUNMAP || !(b->core.flag&BAM_FPROPER_PAIR) ) //no need
+ return;
+
5989
kitr = kh_get(olap_hash, iter->overlaps, bam_get_qname(b));
5990
if ( kitr!=kh_end(iter->overlaps) )
5991
kh_del(olap_hash, iter->overlaps, kitr);
0 commit comments