Return early in target_xfer_partial when LEN is zero.
[deliverable/binutils-gdb.git] / gdb / m32r-tdep.c
index efea81666f9b40f6a7c604681ac807d9228440f2..0ba12768aeef5e25a4949a9a9cd3a15f4ec37204 100644 (file)
@@ -917,7 +917,7 @@ m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
     return arches->gdbarch;
 
   /* Allocate space for the new architecture.  */
-  tdep = XMALLOC (struct gdbarch_tdep);
+  tdep = XNEW (struct gdbarch_tdep);
   gdbarch = gdbarch_alloc (&info, tdep);
 
   set_gdbarch_read_pc (gdbarch, m32r_read_pc);
This page took 0.024686 seconds and 4 git commands to generate.