summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-05-15 21:51:03 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-05-15 21:51:03 +0000
commit56b27c9aa7f7f437454756acd9a09e4d194e45fe (patch)
treefd1e131eb80bca0dcb3a25056bc9cf1af63d336d /toke.c
parent69bdead35873e670ffd15dfa42a90b25b12af16c (diff)
downloadperl-56b27c9aa7f7f437454756acd9a09e4d194e45fe.tar.gz
change 31200 broke src filters used within an eval
eg BEGIN { eval q(use MyFilter) } would ignore the filter p4raw-id: //depot/perl@31225
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 6819a8e7e0..e00a464cc1 100644
--- a/toke.c
+++ b/toke.c
@@ -686,7 +686,7 @@ Perl_lex_start(pTHX_ SV *line, PerlIO *rsfp, bool new_filter)
parser->lex_state = LEX_NORMAL;
parser->expect = XSTATE;
parser->rsfp = rsfp;
- parser->rsfp_filters = (new_filter || !oparser) ? NULL
+ parser->rsfp_filters = (new_filter || !oparser) ? newAV()
: (AV*)SvREFCNT_inc(oparser->rsfp_filters);
Newx(parser->lex_brackstack, 120, char);