aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fread.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fread.c')
-rw-r--r--newlib/libc/stdio/fread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
index a90c50b..1354c04 100644
--- a/newlib/libc/stdio/fread.c
+++ b/newlib/libc/stdio/fread.c
@@ -125,6 +125,8 @@ _DEFUN(fread, (buf, size, count, fp),
if ((resid = count * size) == 0)
return 0;
+ CHECK_INIT(_REENT);
+
_flockfile (fp);
if (fp->_r < 0)
fp->_r = 0;