diff options
Diffstat (limited to 'newlib/libc/stdio/fgets.c')
-rw-r--r-- | newlib/libc/stdio/fgets.c | 2 |
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) |