summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorSteve Grazzini <grazz@pobox.com>2003-06-10 20:46:47 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-12 20:25:41 +0000
commitf93414403b07cda0cb271cd283f020f4981ff2c8 (patch)
treecd3db7ccad7ca3a104a745bef7daaa4da0b48f05 /pp_sys.c
parentcab6ddb148f81f3a8ba8061eb3d06dfdbd4d2132 (diff)
downloadperl-f93414403b07cda0cb271cd283f020f4981ff2c8.tar.gz
Patch for a warning emitted twice, from :
Subject: [PATCH: perl@19733] "perldoc -f -X" + "extra warning from -T" Message-ID: <20030611044647.GA16696@grazzini.net> p4raw-id: //depot/perl@19751
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index ae6d986a85..d9a80873f7 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3325,7 +3325,7 @@ PP(pp_fttext)
PL_laststype = OP_STAT;
sv_setpv(PL_statname, SvPV(sv, n_a));
if (!(fp = PerlIO_open(SvPVX(PL_statname), "r"))) {
- if (ckWARN(WARN_NEWLINE) && strchr(SvPV(sv, n_a), '\n'))
+ if (ckWARN(WARN_NEWLINE) && strchr(SvPV(PL_statname, n_a), '\n'))
Perl_warner(aTHX_ packWARN(WARN_NEWLINE), PL_warn_nl, "open");
RETPUSHUNDEF;
}