summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2000-11-12 21:14:11 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-13 04:17:34 +0000
commit12a63d119c7e6cac4caa17e05e943423ee309496 (patch)
tree4156dc37da2ea30db8a10f4bd0af683023a3ccff /perlio.c
parenta1ca4561f20dbf547f57d39a690790cbe33210da (diff)
downloadperl-12a63d119c7e6cac4caa17e05e943423ee309496.tar.gz
[ID 20001112.008] perlio.c's PerlIO_getpos ingores error return
Message-Id: <E13v4S3-0000iY-00@Bagpuss.unfortu.net> Note: only one breakage of the two reported is fixed by this patch. p4raw-id: //depot/perl@7666
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perlio.c b/perlio.c
index a0e6bc00b7..fa69c44c03 100644
--- a/perlio.c
+++ b/perlio.c
@@ -2314,7 +2314,7 @@ int
PerlIO_getpos(PerlIO *f, Fpos_t *pos)
{
*pos = PerlIO_tell(f);
- return 0;
+ return *pos != -1;
}
#else
#ifndef PERLIO_IS_STDIO