diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-07-21 17:34:50 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-07-21 17:34:50 +0000 |
commit | 688166295a7975e9fa5ad5202105a5db5d6a629f (patch) | |
tree | 79f63477eb1b72f2a3af741d15365a99641eb15e /src | |
parent | 6dbacc71c7a9bcea220801e877e46ee2916a1759 (diff) | |
download | mpd-688166295a7975e9fa5ad5202105a5db5d6a629f.tar.gz mpd-688166295a7975e9fa5ad5202105a5db5d6a629f.tar.xz mpd-688166295a7975e9fa5ad5202105a5db5d6a629f.zip |
Remember kids: always test your code before committing
git-svn-id: https://svn.musicpd.org/mpd/trunk@4420 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/playlist.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/playlist.c b/src/playlist.c index fce6cfe3b..f4a4991ec 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -167,12 +167,13 @@ void initPlaylist(void) } playlist_saveAbsolutePaths = getBoolConfigParam(CONF_SAVE_ABSOLUTE_PATHS); - if (playlist_saveAbsolutePaths == -1) playlist_saveAbsolutePaths = 0; - else if (playlist_saveAbsolutePaths < 0) { + if (playlist_saveAbsolutePaths == -1) { + /* not set */ + playlist_saveAbsolutePaths = 0; + } else if (playlist_saveAbsolutePaths < 0) { param = getConfigParam(CONF_SAVE_ABSOLUTE_PATHS); - ERROR("%s is not \"yes\" or \"no\" on line %i\n" - CONF_SAVE_ABSOLUTE_PATHS, - param->value, param->line); + ERROR("%s is not \"yes\" or \"no\" on line %i\n", + CONF_SAVE_ABSOLUTE_PATHS, param->line); exit(EXIT_FAILURE); } |