diff options
author | Rafael Garcia-Suarez <rgs@consttype.org> | 2009-10-08 12:13:38 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2009-10-08 12:13:38 +0200 |
commit | f4817f32b1c5f1cefe556cf79f36f874b67cad16 (patch) | |
tree | 9ba683a47fa80d3937c85b8b7949bd8b7251dfd0 /pp_sys.c | |
parent | f03173f2c707a804ec3e9c291d2ab1adb9db4abc (diff) | |
download | perl-f4817f32b1c5f1cefe556cf79f36f874b67cad16.tar.gz |
Let tell() report warnings on unopened filehandles
(fixes a bug introduced by previous patch)
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2090,7 +2090,7 @@ PP(pp_tell) RETURN; } } - else { + else if (!gv) { if (!errno) SETERRNO(EBADF,RMS_IFI); PUSHi(-1); |