* tools/dist/backport.pl
(vote): Do not access the ->{vote} member when it might be undefined.
Fixes 'Use of uninitialized value in hash element at ./b line 793' when
committing an approval that's not accompanied by a vote, e.g., r1823790.
@@ -791,7 +791,7 @@ sub vote {
# Add to state votes that aren't '+0' or 'edit'
$state->{$_->{digest}}++ for grep
- +{ qw/-1 t -0 t +1 t/ }->{$_->{vote}},
+ ($_->{approval} or $_->{vote} =~ /^(-1|-0|[+]1)$/),
@votesarray;
}
}
