Remember kids: always test your code before committing
git-svn-id: https://svn.musicpd.org/mpd/trunk@4420 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
6dbacc71c7
commit
688166295a
@ -167,12 +167,13 @@ 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) {
|
||||||
else if (playlist_saveAbsolutePaths < 0) {
|
/* not set */
|
||||||
|
playlist_saveAbsolutePaths = 0;
|
||||||
|
} else if (playlist_saveAbsolutePaths < 0) {
|
||||||
param = getConfigParam(CONF_SAVE_ABSOLUTE_PATHS);
|
param = getConfigParam(CONF_SAVE_ABSOLUTE_PATHS);
|
||||||
ERROR("%s is not \"yes\" or \"no\" on line %i\n"
|
ERROR("%s is not \"yes\" or \"no\" on line %i\n",
|
||||||
CONF_SAVE_ABSOLUTE_PATHS,
|
CONF_SAVE_ABSOLUTE_PATHS, param->line);
|
||||||
param->value, param->line);
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user