From 998227cffc5a6454a238c4fd814161c38a3e3823 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 18 Jul 2018 16:51:17 +0200 Subject: [PATCH] fs/CheckFile: remove variable path_utf8 --- src/fs/CheckFile.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fs/CheckFile.cxx b/src/fs/CheckFile.cxx index 189aabfe6..34a8b265f 100644 --- a/src/fs/CheckFile.cxx +++ b/src/fs/CheckFile.cxx @@ -32,12 +32,10 @@ void CheckDirectoryReadable(Path path_fs) try { - const auto path_utf8 = path_fs.ToUTF8(); - const FileInfo fi(path_fs); if (!fi.IsDirectory()) { FormatError(config_domain, - "Not a directory: %s", path_utf8.c_str()); + "Not a directory: %s", path_fs.ToUTF8().c_str()); return; } @@ -49,7 +47,7 @@ try { if (IsAccessDenied(e)) FormatError(config_domain, "No permission to traverse (\"execute\") directory: %s", - path_utf8.c_str()); + path_fs.ToUTF8().c_str()); } #endif