Return early in target_xfer_partial when LEN is zero.
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index e02b66c7aacb9211714784c7992bec5b182a47d9..042c17d4c6b66c5cf1787a118239bcb457a09955 100644 (file)
@@ -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) = 
This page took 0.028225 seconds and 4 git commands to generate.