Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/ftell.c')
-rw-r--r--newlib/libc/stdio/ftell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdio/ftell.c b/newlib/libc/stdio/ftell.c
index b273c8bc9..74d6d906c 100644
--- a/newlib/libc/stdio/ftell.c
+++ b/newlib/libc/stdio/ftell.c
@@ -105,11 +105,11 @@ _DEFUN(_ftell_r, (ptr, fp),
{
_fpos_t pos;
- _flockfile (fp);
-
/* Ensure stdio is set up. */
- CHECK_INIT (fp);
+ CHECK_INIT (ptr);
+
+ _flockfile (fp);
if (fp->_seek == NULL)
{