PlaylistFile: limit variable scope

This commit is contained in:
Max Kellermann 2015-03-02 22:19:47 +01:00
parent 87a8a3e22f
commit 4ee81e6a3d
1 changed files with 2 additions and 2 deletions

View File

@ -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,