Skip to content

Commit

Permalink
* Fix bug caused by re-positioning of MVSAFE::Safe definition. Caused
Browse files Browse the repository at this point in the history
  tables in Safe not to be defined properly.
  • Loading branch information
Mike Heins committed Feb 2, 2017
1 parent f4c6a83 commit a580c90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Vend/Interpolate.pm
Expand Up @@ -1612,7 +1612,6 @@ sub tag_perl {
}
}

$MVSAFE::Safe = 1;
my $always_global = $Global::PerlAlwaysGlobal->{$Vend::Cat};
my $not_global = 1;
if (
Expand All @@ -1621,7 +1620,6 @@ sub tag_perl {
$Global::AllowGlobal->{$Vend::Cat}
)
{
$MVSAFE::Safe = 0 unless $MVSAFE::Unsafe;
$not_global = 0;
}

Expand Down Expand Up @@ -1660,13 +1658,13 @@ sub tag_perl {

if($not_global) {
$Vend::TagWrapped ||= $Tag = $hole->wrap($Tag);
$MVSAFE::Safe = 1;
}
else {
$Tag = new Vend::Tags;
$MVSAFE::Safe = 0;
}

Debug("Not global? not_global=$not_global Tag=$Tag Db=$Db{userdb} MVSAFE::Safe=$MVSAFE::Safe");

init_calc() if ! $Vend::Calc_initialized;
$ready_safe->share(@share) if @share;

Expand Down

0 comments on commit a580c90

Please sign in to comment.