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/vasprintf.c')
-rw-r--r--newlib/libc/stdio/vasprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/vasprintf.c b/newlib/libc/stdio/vasprintf.c
index 7f35752c7..fbfedee00 100644
--- a/newlib/libc/stdio/vasprintf.c
+++ b/newlib/libc/stdio/vasprintf.c
@@ -46,6 +46,7 @@ _DEFUN (vasprintf, (strp, fmt, ap),
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = _REENT;
+ f._file = -1; /* No file. */
ret = vfprintf (&f, fmt, ap);
*f._p = 0;
*strp = f._bf._base;
@@ -66,6 +67,7 @@ _DEFUN (_vasprintf_r, (ptr, strp, fmt, ap),
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = ptr;
+ f._file = -1; /* No file. */
ret = _vfprintf_r (ptr, &f, fmt, ap);
*f._p = 0;
*strp = f._bf._base;