Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git] / gdb / common / gdb_tilde_expand.c
index fc338ff6ecbdfab9f86aaf711777bc8e75166eef..326df8f6aa9584a4f058e326401bdc773b72201b 100644 (file)
@@ -91,5 +91,5 @@ gdb_tilde_expand_up (const char *dir)
   gdb_assert (glob.pathc () > 0);
   /* "glob" may return more than one match to the path provided by the
      user, but we are only interested in the first match.  */
-  return gdb::unique_xmalloc_ptr<char> (xstrdup (glob.pathv ()[0]));
+  return make_unique_xstrdup (glob.pathv ()[0]);
 }
This page took 0.023335 seconds and 4 git commands to generate.