summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/asprintf.c')
-rw-r--r--newlib/libc/stdio/asprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/asprintf.c b/newlib/libc/stdio/asprintf.c
index d36781548..85bdd313b 100644
--- a/newlib/libc/stdio/asprintf.c
+++ b/newlib/libc/stdio/asprintf.c
@@ -47,6 +47,7 @@ _asprintf_r (ptr, strp, fmt, va_alist)
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = ptr;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else
@@ -80,6 +81,7 @@ asprintf (strp, fmt, va_alist)
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._data = _REENT;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else