diff options
Diffstat (limited to 'newlib/libc/stdio/fgetws.c')
-rw-r--r-- | newlib/libc/stdio/fgetws.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fgetws.c b/newlib/libc/stdio/fgetws.c index 3cf45a976..b5d8851e1 100644 --- a/newlib/libc/stdio/fgetws.c +++ b/newlib/libc/stdio/fgetws.c @@ -160,6 +160,8 @@ _DEFUN(fgetws, (ws, n, fp), int n _AND FILE *fp) { - CHECK_INIT (_REENT, fp); - return _fgetws_r (_REENT, ws, n, fp); + struct _reent *reent = _REENT; + + CHECK_INIT (reent, fp); + return _fgetws_r (reent, ws, n, fp); } |