tree-wide: always drop unnecessary dot in path
This commit is contained in:
@@ -126,7 +126,7 @@ int tempfn_xxxxxx(const char *p, const char *extra, char **ret) {
|
||||
if (!path_extend(&d, nf))
|
||||
return -ENOMEM;
|
||||
|
||||
*ret = path_simplify(TAKE_PTR(d), false);
|
||||
*ret = path_simplify(TAKE_PTR(d));
|
||||
} else
|
||||
*ret = TAKE_PTR(nf);
|
||||
|
||||
@@ -168,7 +168,7 @@ int tempfn_random(const char *p, const char *extra, char **ret) {
|
||||
if (!path_extend(&d, nf))
|
||||
return -ENOMEM;
|
||||
|
||||
*ret = path_simplify(TAKE_PTR(d), false);
|
||||
*ret = path_simplify(TAKE_PTR(d));
|
||||
} else
|
||||
*ret = TAKE_PTR(nf);
|
||||
|
||||
@@ -213,7 +213,7 @@ int tempfn_random_child(const char *p, const char *extra, char **ret) {
|
||||
|
||||
*x = 0;
|
||||
|
||||
*ret = path_simplify(t, false);
|
||||
*ret = path_simplify(t);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user