summaryrefslogtreecommitdiff
path: root/ext/attrs/attrs.xs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/attrs/attrs.xs')
-rw-r--r--ext/attrs/attrs.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/attrs/attrs.xs b/ext/attrs/attrs.xs
index dae612adaf..bc0df7082b 100644
--- a/ext/attrs/attrs.xs
+++ b/ext/attrs/attrs.xs
@@ -24,7 +24,7 @@ char * Class
int i;
CV *cv;
PPCODE:
- if (!compcv || !(cv = CvOUTSIDE(compcv)))
+ if (!PL_compcv || !(cv = CvOUTSIDE(PL_compcv)))
croak("can't set attributes outside a subroutine scope");
for (i = 1; i < items; i++) {
char *attr = SvPV(ST(i), na);