]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Don't import Config into Test::Valgrind::Tool::memcheck::Report
authorVincent Pit <vince@profvince.com>
Tue, 14 Apr 2009 23:42:48 +0000 (01:42 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 14 Apr 2009 23:42:48 +0000 (01:42 +0200)
lib/Test/Valgrind/Tool/memcheck.pm

index a9da30bc40aa162afe039495baa0fa8d8b587fd3..035b85550feb82f0fd638d292e33507dc3b532ff 100644 (file)
@@ -186,8 +186,6 @@ package Test::Valgrind::Tool::memcheck::Report;
 
 use base qw/Test::Valgrind::Report/;
 
-use Config qw/%Config/;
-
 our $VERSION = '1.01';
 
 my @kinds = qw/
@@ -217,7 +215,11 @@ sub valid_kind { exists $kinds_hashed{$_[1]} }
 
 sub is_leak    { $_[0]->kind =~ /^Leak_/ ? 1 : '' }
 
-my $pad = 2 * ($Config{ptrsize} || 4);
+my $pad;
+BEGIN {
+ require Config;
+ $pad = 2 * ($Config::Config{ptrsize} || 4);
+}
 
 sub dump {
  my ($self) = @_;