summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-05-05 17:38:12 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-05-05 17:38:12 +0000
commitbc177e6b66d4907a90c81f2862ce55ad78b6496f (patch)
treec5d5a48ea379b96c206696e7091532a97420284c /mg.c
parent7c1f70cbf29b1c0cfc4cf8a13260aa01453de093 (diff)
downloadperl-bc177e6b66d4907a90c81f2862ce55ad78b6496f.tar.gz
move PL_lex_state into the PL_parser struct
p4raw-id: //depot/perl@31154
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 328885fab0..655af2b4a1 100644
--- a/mg.c
+++ b/mg.c
@@ -807,7 +807,7 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
break;
case '\023': /* ^S */
if (nextchar == '\0') {
- if (PL_lex_state != LEX_NOTPARSING)
+ if (PL_parser && PL_parser->lex_state != LEX_NOTPARSING)
SvOK_off(sv);
else if (PL_in_eval)
sv_setiv(sv, PL_in_eval & ~(EVAL_INREQUIRE));