From 3a2ba84afba2d9b315c65aa46ba036fd22ef4fb0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 15 Aug 2006 05:53:50 +0000 Subject: Updated to fedora-glibc-20060815T0533 --- libio/vasprintf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libio/vasprintf.c') diff --git a/libio/vasprintf.c b/libio/vasprintf.c index ac7733006d..2fdb9f6ed2 100644 --- a/libio/vasprintf.c +++ b/libio/vasprintf.c @@ -46,6 +46,8 @@ _IO_vasprintf (result_ptr, format, args) int ret; _IO_size_t needed; _IO_size_t allocated; + /* No need to clear the memory here (unlike for open_memstream) since + we know we will never seek on the stream. */ string = (char *) malloc (init_string_size); if (string == NULL) return -1; -- cgit v1.2.3