random crash in B::LISTOP::last
Mattia Barbon [Wed, 2 Jan 2002 17:37:28 +0000 (18:37 +0100)]
   Message-Id: <3C334558.3906.19CB98D@localhost>

p4raw-id: //depot/perl@14016

op.c

diff --git a/op.c b/op.c
index ed199b2..5bd6448 100644 (file)
--- a/op.c
+++ b/op.c
@@ -5929,6 +5929,8 @@ Perl_ck_fun(pTHX_ OP *o)
                }
                break;
            case OA_FILEREF:
+                       if(kid==cLISTOPo->op_last)
+                           cLISTOPo->op_last = newop;
                if (kid->op_type != OP_GV && kid->op_type != OP_RV2GV) {
                    if (kid->op_type == OP_CONST &&
                        (kid->op_private & OPpCONST_BARE))