summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2009-10-08 12:13:38 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2009-10-08 12:13:38 +0200
commitf4817f32b1c5f1cefe556cf79f36f874b67cad16 (patch)
tree9ba683a47fa80d3937c85b8b7949bd8b7251dfd0 /pp_sys.c
parentf03173f2c707a804ec3e9c291d2ab1adb9db4abc (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 9a1d1b30fe..3f13dfedb8 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2090,7 +2090,7 @@ PP(pp_tell)
RETURN;
}
}
- else {
+ else if (!gv) {
if (!errno)
SETERRNO(EBADF,RMS_IFI);
PUSHi(-1);