diff options
Diffstat (limited to 'newlib/libc/stdio/vasnprintf.c')
-rw-r--r-- | newlib/libc/stdio/vasnprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/stdio/vasnprintf.c b/newlib/libc/stdio/vasnprintf.c index 923ed83..740aa07 100644 --- a/newlib/libc/stdio/vasnprintf.c +++ b/newlib/libc/stdio/vasnprintf.c @@ -34,6 +34,7 @@ _DEFUN(_vasnprintf_r, (ptr, buf, lenp, fmt, ap), /* mark a zero-length reallocatable buffer */ f._flags = __SWR | __SSTR | __SMBF; len = 0; + buf = NULL; } f._bf._base = f._p = (unsigned char *) buf; /* For now, inherit the 32-bit signed limit of FILE._bf._size. |