fix segfault in -Dx without threads
authorChip Salzenberg <chip@pobox.com>
Thu, 9 Jul 2009 07:39:41 +0000 (00:39 -0700)
committerChip Salzenberg <chip@pobox.com>
Thu, 9 Jul 2009 08:18:17 +0000 (01:18 -0700)
dump.c

index e1eb9a3..2292a17 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -817,7 +817,7 @@ Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, 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;