Skip to content

Commit

Permalink
Prevent segfault when INFO fields are present, unpack needs to be called
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3 committed Jan 2, 2020
1 parent 330bece commit 7e5ac53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/ad-bias.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ bcf1_t *process(bcf1_t *rec)
if ( keep_als )
{
kbs_delete(args.rm_als, 0);
bcf_unpack(rec,BCF_UN_ALL);
if ( bcf_remove_allele_set(args.hdr, rec, args.rm_als)!=0 )
error("Failed to subset alleles\n");
return rec;
Expand Down

0 comments on commit 7e5ac53

Please sign in to comment.