aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/asiprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/asiprintf.c')
-rw-r--r--newlib/libc/stdio/asiprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/asiprintf.c b/newlib/libc/stdio/asiprintf.c
index af25e9a..dedb7fb 100644
--- a/newlib/libc/stdio/asiprintf.c
+++ b/newlib/libc/stdio/asiprintf.c
@@ -35,6 +35,7 @@ _asiprintf_r (struct _reent *ptr,
/* mark a zero-length reallocatable buffer */
f._flags = __SWR | __SSTR | __SMBF;
+ f._flags2 = 0;
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._file = -1; /* No file. */
@@ -61,6 +62,7 @@ asiprintf (char **strp,
/* mark a zero-length reallocatable buffer */
f._flags = __SWR | __SSTR | __SMBF;
+ f._flags2 = 0;
f._bf._base = f._p = NULL;
f._bf._size = f._w = 0;
f._file = -1; /* No file. */