summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1997-11-05 11:22:34 -0600
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-08 14:17:10 +0000
commit246699ca5e3af04fcf52cf11c1535421dd986e59 (patch)
tree6e3d40d548d2d8ffb7c14a6c3558932520740be1 /pp_hot.c
parent74c7603757455e9ae40e2976bf9b439d7ba8be55 (diff)
downloadperl-246699ca5e3af04fcf52cf11c1535421dd986e59.tar.gz
(Retracted by #11223.)
Subject: [PATCH] Re: Problem with Safe.pm and Perl 5.004 Message-Id: <3460FFBA.6DA51F46@ti.com> p4raw-id: //depot/perl@11212
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 9d51b1e3e3..a28337f741 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2516,6 +2516,11 @@ try_autoload:
goto retry;
}
+ if(CvDEFSTASH(cv) != PL_defstash) {
+ save_hptr(&PL_defstash);
+ PL_defstash = CvDEFSTASH(cv);
+ }
+
gimme = GIMME_V;
if ((PL_op->op_private & OPpENTERSUB_DB) && GvCV(PL_DBsub) && !CvNODEBUG(cv)) {
cv = get_db_sub(&sv, cv);