projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce and use make_unique_xstrdup
[deliverable/binutils-gdb.git]
/
gdb
/
cli
/
cli-dump.c
diff --git
a/gdb/cli/cli-dump.c
b/gdb/cli/cli-dump.c
index 8f0d8bfa8cb416ba567eba183187e1389f93975b..621bc9373ff76e7d9efef81c0e1b164430d2470a 100644
(file)
--- a/
gdb/cli/cli-dump.c
+++ b/
gdb/cli/cli-dump.c
@@
-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.