Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git] / gdb / cli / cli-dump.c
index 8f0d8bfa8cb416ba567eba183187e1389f93975b..621bc9373ff76e7d9efef81c0e1b164430d2470a 100644 (file)
@@ -37,7 +37,7 @@ static gdb::unique_xmalloc_ptr<char>
 scan_expression (const char **cmd, const char *def)
 {
   if ((*cmd) == NULL || (**cmd) == '\0')
-    return gdb::unique_xmalloc_ptr<char> (xstrdup (def));
+    return make_unique_xstrdup (def);
   else
     {
       char *exp;
This page took 0.056683 seconds and 4 git commands to generate.