aboutsummaryrefslogtreecommitdiff
path: root/gcc/pretty-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/pretty-print.c')
-rw-r--r--gcc/pretty-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c
index 421302e..43e4409 100644
--- a/gcc/pretty-print.c
+++ b/gcc/pretty-print.c
@@ -422,7 +422,7 @@ void
pp_construct (pretty_printer *pp, const char *prefix, int maximum_length)
{
memset (pp, 0, sizeof (pretty_printer));
- pp->buffer = xmalloc (sizeof (output_buffer));
+ pp->buffer = xcalloc (1, sizeof (output_buffer));
obstack_init (&pp->buffer->obstack);
pp->buffer->stream = stderr;
pp_line_cutoff (pp) = maximum_length;