summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
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;