summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fgets.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fgets.c')
-rw-r--r--newlib/libc/stdio/fgets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/fgets.c b/newlib/libc/stdio/fgets.c
index 8c5147ac9..f5dde4903 100644
--- a/newlib/libc/stdio/fgets.c
+++ b/newlib/libc/stdio/fgets.c
@@ -80,6 +80,8 @@ _DEFUN(fgets, (buf, n, fp),
s = buf;
+ CHECK_INIT(_REENT);
+
_flockfile (fp);
#ifdef __SCLE
if (fp->_flags & __SCLE)