From 6ec548c3366cc094927509536a017d47719ab379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 1 Sep 2026 09:50:15 +0200 Subject: [PATCH] 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. --- src/basic/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/fileio.c b/src/basic/fileio.c index 028372c011..600e7859c4 100644 --- a/src/basic/fileio.c +++ b/src/basic/fileio.c @@ -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,