Commit 4ee81e6a authored by Max Kellermann's avatar Max Kellermann

PlaylistFile: limit variable scope

parent 87a8a3e2
......@@ -181,9 +181,9 @@ LoadPlaylistFileInfo(PlaylistInfo &info,
if (!StringEndsWith(name_fs_str, PLAYLIST_FILE_SUFFIX))
return false;
const auto path_fs = AllocatedPath::Build(parent_path_fs, name_fs);
FileInfo fi;
if (!GetFileInfo(path_fs, fi) || !fi.IsRegular())
if (!GetFileInfo(AllocatedPath::Build(parent_path_fs, name_fs), fi) ||
!fi.IsRegular())
return false;
PathTraitsFS::string name(name_fs_str,
......
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