summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-10-05 20:20:49 +0200
committerNicholas Clark <nick@ccl4.org>2009-10-05 21:07:32 +0200
commit7d113631e107a7f1051ce04bff5d67ef5d96c83a (patch)
tree0a5d53ab15806171ad16f1626938a0a2e90555f1 /perl.c
parent6a787289ba1c1567b3036a5088fca9db65271ee8 (diff)
downloadperl-7d113631e107a7f1051ce04bff5d67ef5d96c83a.tar.gz
Move initialising PL_osname from S_init_predump_symbols to perl_construct().
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl.c b/perl.c
index be11625eb8..a15f86e97c 100644
--- a/perl.c
+++ b/perl.c
@@ -391,6 +391,8 @@ perl_construct(pTHXx)
PL_timesbase.tms_cstime = 0;
#endif
+ PL_osname = Perl_savepvn(aTHX_ STR_WITH_LEN(OSNAME));
+
PL_registered_mros = newHV();
/* Start with 1 bucket, for DFS. It's unlikely we'll need more. */
HvMAX(PL_registered_mros) = 0;
@@ -3884,9 +3886,6 @@ S_init_predump_symbols(pTHX)
GvIOp(tmpgv) = MUTABLE_IO(SvREFCNT_inc_simple(io));
PL_statname = newSV(0); /* last filename we did stat on */
-
- Safefree(PL_osname);
- PL_osname = savepv(OSNAME);
}
void