another threads reliability fix: serialize writes to thr->threadsv
[p5sagit/p5-mst-13.2.git] / ext / attrs / attrs.xs
index da952d5..7f7970d 100644 (file)
@@ -27,7 +27,8 @@ char *        Class
        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), PL_na);
+           STRLEN n_a;
+           char *attr = SvPV(ST(i), n_a);
            cv_flags_t flag = get_flag(attr);
            if (!flag)
                croak("invalid attribute name %s", attr);
@@ -47,7 +48,8 @@ SV *  sub
                sub = Nullsv;
        }
        else {
-           char *name = SvPV(sub, PL_na);
+           STRLEN n_a;
+           char *name = SvPV(sub, n_a);
            sub = (SV*)perl_get_cv(name, FALSE);
        }
        if (!sub)