diff options
Diffstat (limited to 'newlib/libc/stdio64/fseeko64.c')
-rw-r--r-- | newlib/libc/stdio64/fseeko64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdio64/fseeko64.c b/newlib/libc/stdio64/fseeko64.c index 3128830..edd7640 100644 --- a/newlib/libc/stdio64/fseeko64.c +++ b/newlib/libc/stdio64/fseeko64.c @@ -111,11 +111,11 @@ _DEFUN (_fseeko64_r, (ptr, fp, offset, whence), struct stat64 st; int havepos; - _flockfile(fp); - /* Make sure stdio is set up. */ - CHECK_INIT (fp); + CHECK_INIT (ptr); + + _flockfile(fp); curoff = fp->_offset; |