Skip to content

Commit

Permalink
Added a default value to key_pos to avoid a rare uninitialized value bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-nord committed Apr 10, 2022
1 parent 4940d88 commit 499512b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Diviner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3249,7 +3249,7 @@ sub LocalMatchMismatchAli
# Determine the "score contribution" for each cell
my @TraceScore;
$TraceScore[0] = 0;
my $key_pos; # Where do we pass through [max_i][max_j]?
my $key_pos = 0; # Where do we pass through [max_i][max_j]?
for (my $pos=1; $pos<$trace_len; $pos++) {

# Knock this check out first
Expand Down

0 comments on commit 499512b

Please sign in to comment.