Localise the stash variable in pp_entersub().
Nicholas Clark [Wed, 21 Dec 2005 20:38:42 +0000 (20:38 +0000)]
p4raw-id: //depot/perl@26437

pp_hot.c

index ffdd631..668c759 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2621,8 +2621,10 @@ PP(pp_entersub)
     switch (SvTYPE(sv)) {
        /* This is overwhelming the most common case:  */
     case SVt_PVGV:
-       if (!(cv = GvCVu((GV*)sv)))
+       if (!(cv = GvCVu((GV*)sv))) {
+           HV *stash;
            cv = sv_2cv(sv, &stash, &gv, 0);
+       }
        if (!cv) {
            ENTER;
            SAVETMPS;