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
/
target.c
diff --git
a/gdb/target.c
b/gdb/target.c
index 752e62b022f81a895cf8672173d580d2dc4127ce..1c04095fd63c329a4d92331154280d2adf0b4e7b 100644
(file)
--- a/
gdb/target.c
+++ b/
gdb/target.c
@@
-3106,7
+3106,7
@@
target_fileio_read_stralloc (struct inferior *inf, const char *filename)
return gdb::unique_xmalloc_ptr<char> (nullptr);
if (transferred == 0)
- return
gdb::unique_xmalloc_ptr<char> (xstrdup ("")
);
+ return
make_unique_xstrdup (""
);
bufstr[transferred] = 0;
This page took
0.023824 seconds
and
4
git commands to generate.