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
/
common
/
filestuff.c
diff --git
a/gdb/common/filestuff.c
b/gdb/common/filestuff.c
index 1ca62482a7e27a5c9da4a63bba463c0a59d2ba3d..c7b8c694055138cea1c66c89154f5251a70d2d50 100644
(file)
--- a/
gdb/common/filestuff.c
+++ b/
gdb/common/filestuff.c
@@
-462,7
+462,7
@@
is_regular_file (const char *name, int *errno_ptr)
bool
mkdir_recursive (const char *dir)
{
-
gdb::unique_xmalloc_ptr<char> holder (xstrdup (dir)
);
+
auto holder = make_unique_xstrdup (dir
);
char * const start = holder.get ();
char *component_start = start;
char *component_end = start;
This page took
0.024342 seconds
and
4
git commands to generate.