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