diff options
author | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-12 23:47:01 +0000 |
---|---|---|
committer | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-12 23:47:01 +0000 |
commit | 7baa37aacdce23a1b102f84fe8d01ab56b29ada5 (patch) | |
tree | 6821927aa0851f5d2ceb59eb7ff9cfd291f5efdf /gcc/pretty-print.c | |
parent | 76dece62d32fc4246cbe83fdde290e6845250bf6 (diff) | |
download | gcc-7baa37aacdce23a1b102f84fe8d01ab56b29ada5.tar.gz |
2003-09-12 Ziemowit Laski <zlaski@apple.com>
* pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
when allocating pp->buffer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71346 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/pretty-print.c')
-rw-r--r-- | gcc/pretty-print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c index 421302ec722..43e440979c0 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; |