aboutsummaryrefslogtreecommitdiff
path: root/src/PlaylistFile.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-01-24 00:38:09 +0600
committerMax Kellermann <max@duempel.org>2013-01-26 01:14:13 +0100
commita3ee26da6437dff2d065cc3fc2ad069447309ab6 (patch)
tree8efa8f78910da1528d333561eb3f48881c34c4c3 /src/PlaylistFile.cxx
parenta9b62a2ece7f8b05bbb785edb47be8f37a19284e (diff)
Mapper: improve usage of Path class
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r--src/PlaylistFile.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index 34f04df7..5e869d9d 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -84,13 +84,13 @@ spl_valid_name(const char *name_utf8)
static const char *
spl_map(GError **error_r)
{
- const char *path_fs = map_spl_path();
- if (path_fs == NULL)
+ const Path &path_fs = map_spl_path();
+ if (path_fs.IsNull())
g_set_error_literal(error_r, playlist_quark(),
PLAYLIST_RESULT_DISABLED,
"Stored playlists are disabled");
- return path_fs;
+ return path_fs.c_str();
}
static bool