diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-20 12:55:17 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-20 14:49:08 -0800 |
commit | daa30a688f5d99ab2f3405562a4325687c307066 (patch) | |
tree | 9fed26668a2ef628a20da8e5bddbe49be69a9dc6 /pp_sys.c | |
parent | 0540b90bcca7b8f2c1eb9ab87c5fea1b461df4cf (diff) | |
download | perl-daa30a688f5d99ab2f3405562a4325687c307066.tar.gz |
[perl #71002] stat() on unopened fh _
stat _ was producing an erroneous warning about an unopened filehandle
with _. But _ isn’t a real filehandle and is special-cased, so it
shouldn’t warn.
See also commit 8080e3c8.
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2796,10 +2796,10 @@ PP(pp_stat) PL_laststatval = -1; } } + if (PL_laststatval < 0 && !havefp) report_evil_fh(gv); } if (PL_laststatval < 0) { - if (!havefp) report_evil_fh(gv); max = 0; } } |