summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-10-25 04:35:07 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-10-25 04:35:07 +0000
commitb9d12d37e2ae2c5ceee42d544260d4d6703f71e8 (patch)
tree21fddc7351f119e78c716f1be9dcc0b49b83d072 /pp_ctl.c
parentd931506569a96775e3023a9788567281463988c6 (diff)
downloadperl-b9d12d37e2ae2c5ceee42d544260d4d6703f71e8.tar.gz
properly restore PL_rsfp_filters after require
p4raw-id: //depot/perl@2051
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 04efce653b..f5b45b33d1 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2697,10 +2697,8 @@ PP(pp_require)
ENTER;
SAVETMPS;
lex_start(sv_2mortal(newSVpv("",0)));
- if (PL_rsfp_filters){
- save_aptr(&PL_rsfp_filters);
- PL_rsfp_filters = NULL;
- }
+ SAVEGENERICSV(PL_rsfp_filters);
+ PL_rsfp_filters = Nullav;
PL_rsfp = tryrsfp;
name = savepv(name);