summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-08-09 17:53:48 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-08-09 17:53:48 +0000
commit2aea9f8a7ec940891eef705f344a93a3b76154a2 (patch)
treef75e819e338488fc981af8991f130c70eb682b48 /perl.c
parente4050d2591f230e8d00bb5370c5549e7398a5d99 (diff)
downloadperl-2aea9f8a7ec940891eef705f344a93a3b76154a2.tar.gz
fix coredump with MULTIPLICITY (ckWARN() needs early curcop init)
p4raw-id: //depot/perl@1776
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 16e8bc9628..698abfbda8 100644
--- a/perl.c
+++ b/perl.c
@@ -141,6 +141,8 @@ perl_construct(register PerlInterpreter *sv_interp)
thr = init_main_thread();
#endif /* USE_THREADS */
+ PL_curcop = &PL_compiling; /* needed by ckWARN, right away */
+
PL_linestr = NEWSV(65,79);
sv_upgrade(PL_linestr,SVt_PVIV);