summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fileno.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fileno.c')
-rw-r--r--newlib/libc/stdio/fileno.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fileno.c b/newlib/libc/stdio/fileno.c
index 57d091274..b202cc5e3 100644
--- a/newlib/libc/stdio/fileno.c
+++ b/newlib/libc/stdio/fileno.c
@@ -54,8 +54,8 @@ _DEFUN(fileno, (f),
FILE * f)
{
int result;
+ CHECK_INIT (_REENT);
_flockfile (f);
- CHECK_INIT (f);
result = __sfileno (f);
_funlockfile (f);
return result;