summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-02-12 20:29:43 +0000
committerNicholas Clark <nick@ccl4.org>2007-02-12 20:29:43 +0000
commit61626fd500e6d4ce66fd252d4006308416a874bb (patch)
tree1d191c979859a04a79d5465aee84f1b2dfcbce1d /perl.c
parent3e901dc0c5f53f3c2d9be0ef298df8eecfbaa8bd (diff)
downloadperl-61626fd500e6d4ce66fd252d4006308416a874bb.tar.gz
Integrate:
[ 29832] Avoid a SEGV in DBI's test suite, discovered by Andreas. Probably need to go through and audit to see if there are analagous places that need tweaking. p4raw-link: @29832 on //depot/maint-5.8/perl: 42a5fb548791baca026f93036e91df33f2efb5be p4raw-id: //depot/perl@30240 p4raw-integrated: from //depot/maint-5.8/perl@29832 'merge in' perl.c (@29809..)
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index fa1407fa2d..7a53b72e74 100644
--- a/perl.c
+++ b/perl.c
@@ -5116,7 +5116,7 @@ Perl_call_list(pTHX_ I32 oldscope, AV *paramList)
{
dVAR;
SV *atsv;
- const line_t oldline = CopLINE(PL_curcop);
+ const line_t oldline = PL_curcop ? CopLINE(PL_curcop) : 0;
CV *cv;
STRLEN len;
int ret;