From: Nicholas Clark <nick@ccl4.org>
Date: Wed, 21 Dec 2005 20:38:42 +0000 (+0000)
Subject: Localise the stash variable in pp_entersub().
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f730a42d0edd6097a2336d4fa688925f1f317778;p=p5sagit%2Fp5-mst-13.2.git

Localise the stash variable in pp_entersub().

p4raw-id: //depot/perl@26437
---

diff --git a/pp_hot.c b/pp_hot.c
index ffdd631..668c759 100644
--- 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;