tree-wide: always drop unnecessary dot in path

This commit is contained in:
Yu Watanabe
2021-05-28 13:44:38 +09:00
parent 0195046449
commit 4ff361cc86
41 changed files with 91 additions and 98 deletions
+3 -3
View File
@@ -972,7 +972,7 @@ static int search_and_fopen_internal(
f = fopen(p, mode);
if (f) {
if (ret_path)
*ret_path = path_simplify(TAKE_PTR(p), true);
*ret_path = path_simplify(TAKE_PTR(p));
*ret = f;
return 0;
@@ -1013,7 +1013,7 @@ int search_and_fopen(
if (!p)
return -ENOMEM;
*ret_path = path_simplify(p, true);
*ret_path = path_simplify(p);
}
*ret = TAKE_PTR(f);
@@ -1051,7 +1051,7 @@ int search_and_fopen_nulstr(
if (!p)
return -ENOMEM;
*ret_path = path_simplify(p, true);
*ret_path = path_simplify(p);
}
*ret = TAKE_PTR(f);