Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git] / gdb / gdbserver / server.c
index fae5b2433cf0a43eba5cbb3736da2807d69828c5..5e93a58fd6bf23d1b3fe35d55409ef0a1deadb50 100644 (file)
@@ -3802,7 +3802,7 @@ captured_main (int argc, char *argv[])
       int i, n;
 
       n = argc - (next_arg - argv);
-      program_path.set (gdb::unique_xmalloc_ptr<char> (xstrdup (next_arg[0])));
+      program_path.set (make_unique_xstrdup (next_arg[0]));
       for (i = 1; i < n; i++)
        program_args.push_back (xstrdup (next_arg[i]));
       program_args.push_back (NULL);
This page took 0.023981 seconds and 4 git commands to generate.