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:
authorJeff Johnston <jjohnstn@redhat.com>2000-02-21 19:59:23 +0300
committerJeff Johnston <jjohnstn@redhat.com>2000-02-21 19:59:23 +0300
commitb0ba0ac21747fef4f150f2632aedf0f59e0ae03a (patch)
treeb5be89d899bc4501e5e36ce4dd3ef2179cbb272f /newlib/libc
parentd3b7d141acc1106a792ccb699620fe719ea77b29 (diff)
Mon Feb 21 11:43:50 2000 Jeff Johnston <jjohnstn@cygnus.com>
* libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT call prior to calling _VFPRINTF_R so reentrant data area is set. (_VFPRINTF_R): Removed now extraneous CHECK_INIT call.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdio/vfprintf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index 4b2043e49..8da76db99 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -276,6 +276,7 @@ _DEFUN (VFPRINTF, (fp, fmt0, ap),
_CONST char *fmt0 _AND
va_list ap)
{
+ CHECK_INIT (fp);
return _VFPRINTF_R (fp->_data, fp, fmt0, ap);
}
@@ -396,8 +397,6 @@ _DEFUN (_VFPRINTF_R, (data, fp, fmt0, ap),
(u_long)va_arg(ap, u_int))
#endif
- CHECK_INIT (fp);
-
/* sorry, fprintf(read_only_file, "") returns EOF, not 0 */
if (cantwrite(fp))
return (EOF);