summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorAbhijit Menon-Sen <ams@wiw.org>2002-01-02 17:06:27 +0000
committerAbhijit Menon-Sen <ams@wiw.org>2002-01-02 17:06:27 +0000
commit364daeac4868b98a1fa3ae76f6024a86f1be49bd (patch)
tree2175f446b58a66f393dab955f168ca0ab622ce8a /op.c
parentb8e786efd92a7027bef701c863eb34e80f132a24 (diff)
downloadperl-364daeac4868b98a1fa3ae76f6024a86f1be49bd.tar.gz
Fix misplaced application of #14016.
p4raw-id: //depot/perl@14020
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/op.c b/op.c
index 5bd6448507..047fe6ddf0 100644
--- a/op.c
+++ b/op.c
@@ -5929,8 +5929,6 @@ 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))
@@ -5938,6 +5936,8 @@ Perl_ck_fun(pTHX_ OP *o)
OP *newop = newGVOP(OP_GV, 0,
gv_fetchpv(SvPVx(((SVOP*)kid)->op_sv, n_a), TRUE,
SVt_PVIO) );
+ if (kid == cLISTOPo->op_last)
+ cLISTOPo->op_last = newop;
op_free(kid);
kid = newop;
}