X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FAction%2FSuppressions.pm;h=e6becbf44c1fc54bbff4120325006a9c90942e4c;hb=3a312e2c6e7fdc7be70dcc8ccca604e7c62699f5;hp=bbc6f2878a337564b462e9d99afff273a3a19bc5;hpb=d93ddba6bc7708cbd0df564b47eb63edf70d601c;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Action/Suppressions.pm b/lib/Test/Valgrind/Action/Suppressions.pm index bbc6f28..e6becbf 100644 --- a/lib/Test/Valgrind/Action/Suppressions.pm +++ b/lib/Test/Valgrind/Action/Suppressions.pm @@ -9,11 +9,11 @@ Test::Valgrind::Action::Suppressions - Generate suppressions for a given tool. =head1 VERSION -Version 1.14 +Version 1.16 =cut -our $VERSION = '1.14'; +our $VERSION = '1.16'; =head1 DESCRIPTION @@ -155,7 +155,8 @@ sub finish { open my $fh, '>', $target or $self->_croak("open(\$fh, '>', \$self->target): $!"); - my (%seen, $id); + my $id = 0; + my %seen; for (sort { $a->data cmp $b->data } grep !$seen{$_->data}++, @{$self->{supps}}) { print $fh "{\n"