diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-05-27 20:25:30 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-05-27 20:25:30 +0000 |
commit | f62cb720259c484e37beef31bf5247e5e150815a (patch) | |
tree | 8efae199b1e98188092ab8a95537d7c94e0ae12d /util.c | |
parent | efe6c6a19b7c016fee2f63a93a8d6f569c5793ba (diff) | |
download | perl-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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) { |