summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2017-08-28 12:52:10 -0700
committerFather Chrysostomos <sprout@cpan.org>2017-10-08 12:05:04 -0700
commit42bcad312582e88fc4e5bd1e9c2ad91a7bdac1c1 (patch)
tree043d0cda3a360be710051a810ec1ac7a576db548 /perl.c
parent04680144c43db3714671c554db48c5c4a8096517 (diff)
downloadperl-42bcad312582e88fc4e5bd1e9c2ad91a7bdac1c1.tar.gz
Don’t assign PL_curstash twice in init_main_stash
This commit: commit 8990e3071044a96302560bbdb5706f3e74cf1bef Author: Larry Wall <larry@netlabs.com> Date: Fri Mar 18 00:00:00 1994 +0000 perl 5.0 alpha 6 added ‘curstash = defstash’ to perl.c:init_main_stash, which already had such an assignment a few lines above. So it is redundant, and always has been.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index dc77e49f8b..281f42412c 100644
--- a/perl.c
+++ b/perl.c
@@ -3823,7 +3823,6 @@ S_init_main_stash(pTHX)
#endif
sv_grow(ERRSV, 240); /* Preallocate - for immediate signals. */
CLEAR_ERRSV();
- SET_CURSTASH(PL_defstash);
CopSTASH_set(&PL_compiling, PL_defstash);
PL_debstash = GvHV(gv_fetchpvs("DB::", GV_ADDMULTI, SVt_PVHV));
PL_globalstash = GvHV(gv_fetchpvs("CORE::GLOBAL::", GV_ADDMULTI,