PlaylistFile: limit variable scope
This commit is contained in:
@@ -181,9 +181,9 @@ LoadPlaylistFileInfo(PlaylistInfo &info,
|
|||||||
if (!StringEndsWith(name_fs_str, PLAYLIST_FILE_SUFFIX))
|
if (!StringEndsWith(name_fs_str, PLAYLIST_FILE_SUFFIX))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const auto path_fs = AllocatedPath::Build(parent_path_fs, name_fs);
|
|
||||||
FileInfo fi;
|
FileInfo fi;
|
||||||
if (!GetFileInfo(path_fs, fi) || !fi.IsRegular())
|
if (!GetFileInfo(AllocatedPath::Build(parent_path_fs, name_fs), fi) ||
|
||||||
|
!fi.IsRegular())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
PathTraitsFS::string name(name_fs_str,
|
PathTraitsFS::string name(name_fs_str,
|
||||||
|
Reference in New Issue
Block a user