Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git] / gdb / mi / mi-main.c
index 4921c13528ec305e0dd950f5def69a1193ef42c7..13c310d494c0f348531db91f1c9da73f71c67af0 100644 (file)
@@ -695,7 +695,7 @@ static void
 output_cores (struct ui_out *uiout, const char *field_name, const char *xcores)
 {
   ui_out_emit_list list_emitter (uiout, field_name);
-  gdb::unique_xmalloc_ptr<char> cores (xstrdup (xcores));
+  auto cores = make_unique_xstrdup (xcores);
   char *p = cores.get ();
 
   for (p = strtok (p, ","); p;  p = strtok (NULL, ","))
This page took 0.025348 seconds and 4 git commands to generate.