Commit c4555dd9 by Ziemowit Laski Committed by Ziemowit Laski

pretty-print.c (pp_construct): Use xcalloc instead of xmalloc when allocating pp->buffer.

2003-09-12  Ziemowit Laski  <zlaski@apple.com>

        * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
        when allocating pp->buffer.

From-SVN: r71346
parent 2e53734e
2003-09-12 Ziemowit Laski <zlaski@apple.com>
* pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
when allocating pp->buffer.
2003-09-12 Geoffrey Keating <geoffk@apple.com>
* config/darwin.c (machopic_select_rtx_section): Use
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment