diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-05 20:20:49 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-10-05 21:07:32 +0200 |
commit | 7d113631e107a7f1051ce04bff5d67ef5d96c83a (patch) | |
tree | 0a5d53ab15806171ad16f1626938a0a2e90555f1 /perl.c | |
parent | 6a787289ba1c1567b3036a5088fca9db65271ee8 (diff) | |
download | perl-7d113631e107a7f1051ce04bff5d67ef5d96c83a.tar.gz |
Move initialising PL_osname from S_init_predump_symbols to perl_construct().
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |