aboutsummaryrefslogtreecommitdiff
path: root/stdio/fseek.c
diff options
context:
space:
mode:
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 a5abfe4..562b7b3 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;