aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-02 22:19:47 +0100
committerMax Kellermann <max@duempel.org>2015-03-02 22:19:47 +0100
commit4ee81e6a3d0a6091f9e3e23c0cfd56e59f50a387 (patch)
treee6f991c04762f1664a111ff3d12e629a471d216c
parent87a8a3e22f7d25c88c344cd195bde58d237716a0 (diff)
downloadmpd-4ee81e6a3d0a6091f9e3e23c0cfd56e59f50a387.tar.gz
mpd-4ee81e6a3d0a6091f9e3e23c0cfd56e59f50a387.tar.xz
mpd-4ee81e6a3d0a6091f9e3e23c0cfd56e59f50a387.zip
PlaylistFile: limit variable scope
-rw-r--r--src/PlaylistFile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index 7b461e387..f9c3ab3f3 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -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,