diff options
Diffstat (limited to 'newlib/libc/stdio/vsprintf.c')
-rw-r--r-- | newlib/libc/stdio/vsprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/vsprintf.c b/newlib/libc/stdio/vsprintf.c index b440ac5..3b92f26 100644 --- a/newlib/libc/stdio/vsprintf.c +++ b/newlib/libc/stdio/vsprintf.c @@ -44,6 +44,7 @@ _DEFUN (vsprintf, (str, fmt, ap), f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = INT_MAX; f._data = _REENT; + f._file = -1; /* No file. */ ret = vfprintf (&f, fmt, ap); *f._p = 0; return ret; @@ -63,6 +64,7 @@ _DEFUN (_vsprintf_r, (ptr, str, fmt, ap), f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = INT_MAX; f._data = ptr; + f._file = -1; /* No file. */ ret = _vfprintf_r (ptr, &f, fmt, ap); *f._p = 0; return ret; |