Added check to prevent accidental data overwrite during arghash construction.

This commit is contained in:
Chris 2011-09-13 10:43:13 +01:00
parent 001992af81
commit 666c8b5759

View File

@ -192,7 +192,7 @@ sub _new_module_internal {
"module" => $self,
};
foreach my $key (%{$self}) {
$args{$key} = $self -> {$key};
$args{$key} = $self -> {$key} if(!defined($args{$key}));
}
my $modobj = $name -> new(%args)