fix segfault in -Dx without threads
[perl.git] / dump.c
diff --git a/dump.c b/dump.c
index bf12270..79acd09 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -1040,7 +1040,7 @@ Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, const OP *o)
 #ifdef USE_ITHREADS
        Perl_dump_indent(aTHX_ level, file, "PADIX = %" IVdf "\n", (IV)cPADOPo->op_padix);
 #else
-       if ( ! (PL_op->op_flags & OPf_SPECIAL)) { /* not lexical */
+       if ( ! (o->op_flags & OPf_SPECIAL)) { /* not lexical */
            if (cSVOPo->op_sv) {
                SV * const tmpsv = newSV(0);
                ENTER;