shared/fileio: avoid copying strv twice
search_and_fopen called search_and_fopen_internal which made a copy of the search strv and then called search_and_open which made a copy too.
This commit is contained in:
+1
-1
@@ -1295,7 +1295,7 @@ static int search_and_fopen_internal(
|
||||
assert(path);
|
||||
assert(mode || !ret_file);
|
||||
|
||||
r = search_and_open(
|
||||
r = search_and_open_internal(
|
||||
path,
|
||||
mode ? fopen_mode_to_flags(mode) : 0,
|
||||
root,
|
||||
|
||||
Reference in New Issue
Block a user