X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbtypes.c;h=042c17d4c6b66c5cf1787a118239bcb457a09955;hb=ce6d08922f2875544f9ba461a849726ceff84528;hp=e02b66c7aacb9211714784c7992bec5b182a47d9;hpb=41bf6acad7b02f67240f4cf84f066078f9ed7116;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index e02b66c7aa..042c17d4c6 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -3700,7 +3700,7 @@ copy_type_recursive (struct objfile *objfile, int i, nfields; nfields = TYPE_NFIELDS (type); - TYPE_FIELDS (new_type) = XCALLOC (nfields, struct field); + TYPE_FIELDS (new_type) = XCNEWVEC (struct field, nfields); for (i = 0; i < nfields; i++) { TYPE_FIELD_ARTIFICIAL (new_type, i) =