Use the existing define for the default value of save_absolute_playlists
instead of a hardcoded value. git-svn-id: https://svn.musicpd.org/mpd/trunk@5151 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
df3222095c
commit
d4be2276a0
@ -158,7 +158,7 @@ void initPlaylist(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
playlist_saveAbsolutePaths = getBoolConfigParam(CONF_SAVE_ABSOLUTE_PATHS);
|
playlist_saveAbsolutePaths = getBoolConfigParam(CONF_SAVE_ABSOLUTE_PATHS);
|
||||||
if (playlist_saveAbsolutePaths == -1) playlist_saveAbsolutePaths = 0;
|
if (playlist_saveAbsolutePaths == -1) playlist_saveAbsolutePaths = DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;
|
||||||
else if (playlist_saveAbsolutePaths < 0) exit(EXIT_FAILURE);
|
else if (playlist_saveAbsolutePaths < 0) exit(EXIT_FAILURE);
|
||||||
|
|
||||||
playlist.songs = xmalloc(sizeof(Song *) * playlist_max_length);
|
playlist.songs = xmalloc(sizeof(Song *) * playlist_max_length);
|
||||||
|
Loading…
Reference in New Issue
Block a user