summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/siprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/siprintf.c')
-rw-r--r--newlib/libc/stdio/siprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/siprintf.c b/newlib/libc/stdio/siprintf.c
index 95ff8084f..838200805 100644
--- a/newlib/libc/stdio/siprintf.c
+++ b/newlib/libc/stdio/siprintf.c
@@ -85,6 +85,7 @@ siprintf(str, fmt, va_alist)
f._flags = __SWR | __SSTR;
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._w = INT_MAX;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else
@@ -119,6 +120,7 @@ _siprintf_r(rptr, str, fmt, va_alist)
f._flags = __SWR | __SSTR;
f._bf._base = f._p = (unsigned char *) str;
f._bf._size = f._w = INT_MAX;
+ f._file = -1; /* No file. */
#ifdef _HAVE_STDC
va_start (ap, fmt);
#else