summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-10-06 21:16:34 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-10-06 21:16:34 +0000
commit9d14cc18f7ccf6279e31fce0414a00b7ff3bd076 (patch)
treed7ec3e97b29e16cfad010aa34b0044ba0eef42c7
parente24b16f93601a2fb49f1bbf6bab19c3bfe09c0e8 (diff)
downloadperl-9d14cc18f7ccf6279e31fce0414a00b7ff3bd076.tar.gz
fix $/ init for USE_THREADS
p4raw-id: //depot/perl@1937
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 0d6b150e10..cb0e6243a6 100644
--- a/perl.c
+++ b/perl.c
@@ -1939,7 +1939,7 @@ init_main_stash(void)
PL_debstash = GvHV(gv_fetchpv("DB::", GV_ADDMULTI, SVt_PVHV));
PL_globalstash = GvHV(gv_fetchpv("CORE::GLOBAL::", GV_ADDMULTI, SVt_PVHV));
/* We must init $/ before switches are processed. */
- sv_setpvn(GvSV(gv_fetchpv("/", TRUE, SVt_PV)), "\n", 1);
+ sv_setpvn(perl_get_sv("/", TRUE), "\n", 1);
}
STATIC void