Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git] / gdb / symfile.c
index af99da18f7affb8e386cad0894e6efa4302ffeb7..26762d289cae7df0dea1d02b78b549cc8e05648e 100644 (file)
@@ -3877,7 +3877,7 @@ test_set_ext_lang_command ()
   SELF_CHECK (lang == language_unknown);
 
   /* Test adding a new extension using the CLI command.  */
-  gdb::unique_xmalloc_ptr<char> args_holder (xstrdup (".hello rust"));
+  auto args_holder = make_unique_xstrdup (".hello rust");
   ext_args = args_holder.get ();
   set_ext_lang_command (NULL, 1, NULL);
 
This page took 0.025812 seconds and 4 git commands to generate.