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
commitf41d942bb45cf99e4ae22810319eb3c8218dc903 (patch)
tree6e3d40d548d2d8ffb7c14a6c3558932520740be1 /pp_hot.c
parent9c213490c87b0a6d2fed57046e955d072919ac20 (diff)
downloadperl-f41d942bb45cf99e4ae22810319eb3c8218dc903.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);