Commit 998227cf authored by Max Kellermann's avatar Max Kellermann

fs/CheckFile: remove variable path_utf8

parent 09f743dc
...@@ -32,12 +32,10 @@ ...@@ -32,12 +32,10 @@
void void
CheckDirectoryReadable(Path path_fs) CheckDirectoryReadable(Path path_fs)
try { try {
const auto path_utf8 = path_fs.ToUTF8();
const FileInfo fi(path_fs); const FileInfo fi(path_fs);
if (!fi.IsDirectory()) { if (!fi.IsDirectory()) {
FormatError(config_domain, FormatError(config_domain,
"Not a directory: %s", path_utf8.c_str()); "Not a directory: %s", path_fs.ToUTF8().c_str());
return; return;
} }
...@@ -49,7 +47,7 @@ try { ...@@ -49,7 +47,7 @@ try {
if (IsAccessDenied(e)) if (IsAccessDenied(e))
FormatError(config_domain, FormatError(config_domain,
"No permission to traverse (\"execute\") directory: %s", "No permission to traverse (\"execute\") directory: %s",
path_utf8.c_str()); path_fs.ToUTF8().c_str());
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment