This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Localise the stash variable in pp_entersub().
authorNicholas Clark <nick@ccl4.org>
Wed, 21 Dec 2005 20:38:42 +0000 (20:38 +0000)
committerNicholas Clark <nick@ccl4.org>
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;