about summary refs log tree commit diff
path: root/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'stdio')
-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;