summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-05-27 20:25:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-05-27 20:25:30 +0000
commitf62cb720259c484e37beef31bf5247e5e150815a (patch)
tree8efae199b1e98188092ab8a95537d7c94e0ae12d /util.c
parentefe6c6a19b7c016fee2f63a93a8d6f569c5793ba (diff)
downloadperl-f62cb720259c484e37beef31bf5247e5e150815a.tar.gz
Fix a warning bug in Perl_report_evil_fh (didn't report
stashes correctly.) Partial info is better than wrong info. p4raw-id: //depot/perl@16821
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/util.c b/util.c
index 3e7b6d3232..572b9214b0 100644
--- a/util.c
+++ b/util.c
@@ -3458,10 +3458,7 @@ Perl_report_evil_fh(pTHX_ GV *gv, IO *io, I32 op)
}
if (gv && isGV(gv)) {
- SV *sv = sv_newmortal();
- gv_efullname4(sv, gv, Nullch, FALSE);
- if (SvOK(sv))
- name = SvPVX(sv);
+ name = GvENAME(gv);
}
if (op == OP_phoney_OUTPUT_ONLY || op == OP_phoney_INPUT_ONLY) {