summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-06-26 21:07:02 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-06-26 21:07:02 +0000
commitb8328daed2539ae075bccc60f3e5bb4b34f39c28 (patch)
treec4913f5ccfbdf02beaaf2c3e18d9d938e6e76768 /sv.c
parent22717f83d889005ea69f223baa94257d681f86d7 (diff)
downloadperl-b8328daed2539ae075bccc60f3e5bb4b34f39c28.tar.gz
make sure PL_Parser is NULL during early stage of thread clone
p4raw-id: //depot/perl@31474
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 1b5d8e8816..f503f140a1 100644
--- a/sv.c
+++ b/sv.c
@@ -10906,6 +10906,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_savestack_ix = 0;
PL_savestack_max = -1;
PL_sig_pending = 0;
+ PL_parser = NULL;
Zero(&PL_debug_pad, 1, struct perl_debug_pad);
# else /* !DEBUGGING */
Zero(my_perl, 1, PerlInterpreter);
@@ -10940,6 +10941,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_savestack_ix = 0;
PL_savestack_max = -1;
PL_sig_pending = 0;
+ PL_parser = NULL;
Zero(&PL_debug_pad, 1, struct perl_debug_pad);
# else /* !DEBUGGING */
Zero(my_perl, 1, PerlInterpreter);