Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/vfwscanf.c')
-rw-r--r--newlib/libc/stdio/vfwscanf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vfwscanf.c b/newlib/libc/stdio/vfwscanf.c
index 5d2388df8..3379b5e19 100644
--- a/newlib/libc/stdio/vfwscanf.c
+++ b/newlib/libc/stdio/vfwscanf.c
@@ -258,8 +258,10 @@ _DEFUN(VFWSCANF, (fp, fmt, ap),
_CONST wchar_t *fmt _AND
va_list ap)
{
- CHECK_INIT(_REENT, fp);
- return __SVFWSCANF_R (_REENT, fp, fmt, ap);
+ struct _reent *reent = _REENT;
+
+ CHECK_INIT(reent, fp);
+ return __SVFWSCANF_R (reent, fp, fmt, ap);
}
int