diff options
Diffstat (limited to 'newlib/libc/stdio64/ftello64.c')
-rw-r--r-- | newlib/libc/stdio64/ftello64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdio64/ftello64.c b/newlib/libc/stdio64/ftello64.c index aaf0f023e..ef3317561 100644 --- a/newlib/libc/stdio64/ftello64.c +++ b/newlib/libc/stdio64/ftello64.c @@ -91,11 +91,11 @@ _DEFUN (_ftello64_r, (ptr, fp), { _fpos64_t pos; - _flockfile(fp); - /* Ensure stdio is set up. */ - CHECK_INIT (fp); + CHECK_INIT (ptr); + + _flockfile(fp); if (fp->_seek64 == NULL) { |