Keep from using a variable in S_my_kid() before it is initialized. This was...
Steve Peters [Sat, 11 Mar 2006 20:57:26 +0000 (20:57 +0000)]
p4raw-id: //depot/perl@27475

op.c

diff --git a/op.c b/op.c
index a6a5422..9f91361 100644 (file)
--- a/op.c
+++ b/op.c
@@ -1745,12 +1745,13 @@ S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp)
     if (!o || PL_error_count)
        return o;
 
+    type = o->op_type;
+
     if (PL_madskills && type == OP_NULL && o->op_flags & OPf_KIDS) {
        (void)my_kid(cUNOPo->op_first, attrs, imopsp);
        return o;
     }
 
-    type = o->op_type;
     if (type == OP_LIST) {
         OP *kid;
        for (kid = cLISTOPo->op_first; kid; kid = kid->op_sibling)