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/vwprintf.c')
-rw-r--r--newlib/libc/stdio/vwprintf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vwprintf.c b/newlib/libc/stdio/vwprintf.c
index ce28fdabb..de95346a0 100644
--- a/newlib/libc/stdio/vwprintf.c
+++ b/newlib/libc/stdio/vwprintf.c
@@ -30,8 +30,10 @@ _DEFUN(vwprintf, (fmt, ap),
_CONST wchar_t *fmt _AND
va_list ap)
{
- _REENT_SMALL_CHECK_INIT (_REENT);
- return _vfwprintf_r (_REENT, _stdout_r (_REENT), fmt, ap);
+ struct _reent *reent = _REENT;
+
+ _REENT_SMALL_CHECK_INIT (reent);
+ return _vfwprintf_r (reent, _stdout_r (reent), fmt, ap);
}
#endif /* !_REENT_ONLY */