summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Forghieri <alf@orion.it>2002-06-15 14:56:35 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-15 15:34:51 +0000
commit47c8db80932508b6333745f2c283d5a98bf9cccb (patch)
treece134a143946a43350cecd54b77cfe7c162b9ce2
parent1fb76a4637fd4800180784d4acf2abcdd008365e (diff)
downloadperl-47c8db80932508b6333745f2c283d5a98bf9cccb.tar.gz
Possible cure for
Subject: Re: Thread bug in 5.8RC1 Win32 Message-ID: <20020615125635.A25110@alpha.orion.it> p4raw-id: //depot/perl@17250
-rw-r--r--perl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index e4ca5a005e..113d3bdbad 100644
--- a/perl.c
+++ b/perl.c
@@ -442,7 +442,8 @@ perl_destruct(pTHXx)
/* Destroy the main CV and syntax tree */
if (PL_main_root) {
- PL_curpad = AvARRAY(PL_comppad);
+ /* If running under -d may not have PL_comppad. */
+ PL_curpad = PL_comppad ? AvARRAY(PL_comppad) : NULL;
op_free(PL_main_root);
PL_main_root = Nullop;
}