]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Add a couple of missing break; statements in pp_multideref()
authorVincent Pit <vince@profvince.com>
Mon, 27 Apr 2015 15:40:37 +0000 (12:40 -0300)
committerVincent Pit <vince@profvince.com>
Mon, 27 Apr 2015 15:40:37 +0000 (12:40 -0300)
autovivification.xs

index b9843fb38ebc08628975f29c20dc75685e595300..d07bac01094f085c21be3176b4309ab4895f200a 100644 (file)
@@ -972,9 +972,9 @@ check_elem:
        sv = a_do_pp_aelem(sv, esv);
       }
       goto finish;
-     } else {
-      sv = a_do_pp_aelem(sv, esv);
      }
+     sv = a_do_pp_aelem(sv, esv);
+     break;
     }
    case MDEREF_HV_padhv_helem: /* $lex{...} */
     sv = PAD_SVl((++items)->pad_offset);
@@ -1040,9 +1040,9 @@ do_HV_helem:
        sv = a_do_pp_helem(sv, key);
       }
       goto finish;
-     } else {
-      sv = a_do_pp_helem(sv, key);
      }
+     sv = a_do_pp_helem(sv, key);
+     break;
     }
   }