tree-wide: always drop unnecessary dot in path
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user