Skip to content

Commit 4f08744

Browse files
authored
Move flags test in overlap_remove() (#1990)
1 parent eaa17b6 commit 4f08744

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sam.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5980,12 +5980,12 @@ static void overlap_remove(bam_plp_t iter, const bam1_t *b)
59805980
{
59815981
if ( !iter->overlaps ) return;
59825982

5983-
if ( b->core.flag&BAM_FUNMAP || !(b->core.flag&BAM_FPROPER_PAIR) ) //no need
5984-
return;
5985-
59865983
khiter_t kitr;
59875984
if ( b )
59885985
{
5986+
if ( b->core.flag&BAM_FUNMAP || !(b->core.flag&BAM_FPROPER_PAIR) ) //no need
5987+
return;
5988+
59895989
kitr = kh_get(olap_hash, iter->overlaps, bam_get_qname(b));
59905990
if ( kitr!=kh_end(iter->overlaps) )
59915991
kh_del(olap_hash, iter->overlaps, kitr);

0 commit comments

Comments
 (0)