summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/ferror.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/ferror.c')
-rw-r--r--newlib/libc/stdio/ferror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/ferror.c b/newlib/libc/stdio/ferror.c
index ea701bec7..72b7ce2c5 100644
--- a/newlib/libc/stdio/ferror.c
+++ b/newlib/libc/stdio/ferror.c
@@ -66,7 +66,7 @@ _DEFUN(ferror, (fp),
FILE * fp)
{
int result;
- CHECK_INIT(_REENT);
+ CHECK_INIT(_REENT, fp);
_flockfile (fp);
result = __sferror (fp);
_funlockfile (fp);