aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 8b2bc1f42..f4fd02ce1 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -140,11 +140,11 @@ void initPlaylist(void)
}
}
- playlist_saveAbsolutePaths = getBoolConfigParam(CONF_SAVE_ABSOLUTE_PATHS);
- if (playlist_saveAbsolutePaths == -1)
- playlist_saveAbsolutePaths = DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;
- else if (playlist_saveAbsolutePaths < 0)
- exit(EXIT_FAILURE);
+ playlist_saveAbsolutePaths = getBoolConfigParam(
+ CONF_SAVE_ABSOLUTE_PATHS, 1);
+ if (playlist_saveAbsolutePaths == CONF_BOOL_UNSET)
+ playlist_saveAbsolutePaths =
+ DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;
playlist.songs = xmalloc(sizeof(Song *) * playlist_max_length);
playlist.songMod = xmalloc(sizeof(mpd_uint32) * playlist_max_length);