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 07:39:41 +0000 (00:39 -0700)
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;