From a3ee26da6437dff2d065cc3fc2ad069447309ab6 Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Thu, 24 Jan 2013 00:38:09 +0600 Subject: Mapper: improve usage of Path class --- src/PlaylistFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PlaylistFile.cxx') 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 -- cgit v1.2.3