aboutsummaryrefslogtreecommitdiff
path: root/stdio/fseek.c
diff options
context:
space:
mode:
authorThomas Bushnell, BSG <thomas@gnu.org>1996-08-29 16:02:14 +0000
committerThomas Bushnell, BSG <thomas@gnu.org>1996-08-29 16:02:14 +0000
commit9607dca3f4ae2ddc0517e4ac64da251e2c54a58c (patch)
treec1fff9b6c7de8c2a373c16113d330d5b8228c826 /stdio/fseek.c
parent14bab8de31e04b990c2ce83d844f634ec57a6cc6 (diff)
downloadglibc-9607dca3f4ae2ddc0517e4ac64da251e2c54a58c.tar
glibc-9607dca3f4ae2ddc0517e4ac64da251e2c54a58c.tar.gz
glibc-9607dca3f4ae2ddc0517e4ac64da251e2c54a58c.tar.bz2
glibc-9607dca3f4ae2ddc0517e4ac64da251e2c54a58c.zip
*** empty log message ***
Thu Aug 29 12:00:30 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * stdio/fseek.c (fseek): Don't assume we know the file position; other handles may have changed it. So set STREAM.__offset to -1 before calling __stdio_check_offset to make sure we have a correct value.
Diffstat (limited to 'stdio/fseek.c')
-rw-r--r--stdio/fseek.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdio/fseek.c b/stdio/fseek.c
index a5abfe4866..562b7b3cb6 100644
--- a/stdio/fseek.c
+++ b/stdio/fseek.c
@@ -42,6 +42,7 @@ DEFUN(fseek, (stream, offset, whence),
return EOF;
/* Make sure we know the current offset info. */
+ stream.__offset = -1;
if (__stdio_check_offset (stream) == EOF)
return EOF;