This is the mail archive of the
mailing list for the GDB project.
Re: RFA: fix crash-causing bug in copy_type_recursive
On Monday 10 November 2008 20:52:44, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <email@example.com> writes:
> >> + memset (TYPE_FIELDS (new_type), 0, sizeof (struct field) * nfields);
> Pedro> Or xzalloc, or xcalloc, or XCALLOC even.
> I would have done this, but all other initializations of this field
> use xmalloc + memset. So, I opted for consistency.
Fair enough. That's an argument I tend to use myself, as you know.