2008-11-10 Tom Tromey <tromey@redhat.com>
+ * gdbtypes.c (copy_type_recursive): Clear new fields.
+
+2008-11-10 Tom Tromey <tromey@redhat.com>
+
* cli/cli-cmds.c (source_script): Clean up full_pathname. Run
cleanups on early return.
nfields = TYPE_NFIELDS (type);
TYPE_FIELDS (new_type) = xmalloc (sizeof (struct field) * nfields);
+ memset (TYPE_FIELDS (new_type), 0, sizeof (struct field) * nfields);
for (i = 0; i < nfields; i++)
{
TYPE_FIELD_ARTIFICIAL (new_type, i) =