Re: [perl #20798] foo(eval {}) crashes Perl 5.8
Adrian M. Enache [Fri, 7 Mar 2003 00:12:03 +0000 (02:12 +0200)]
Message-ID: <20030306221203.GB13330@ratsnest.hole>

p4raw-id: //depot/perl@18860

op.c

diff --git a/op.c b/op.c
index 0ea6146..54de5de 100644 (file)
--- a/op.c
+++ b/op.c
@@ -4718,10 +4718,9 @@ Perl_ck_eval(pTHX_ OP *o)
            o->op_flags &= ~OPf_KIDS;
            op_null(o);
        }
-       else if (kid->op_type == OP_LINESEQ) {
+       else if (kid->op_type == OP_LINESEQ || kid->op_type == OP_STUB) {
            LOGOP *enter;
 
-           kid->op_next = o->op_next;
            cUNOPo->op_first = 0;
            op_free(o);