aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/playlist.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/playlist.c b/src/playlist.c
index bc01700aa..183676854 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -121,6 +121,7 @@ void initPlaylist(void)
{
char *test;
ConfigParam *param;
+ int value;
g_rand = g_rand_new();
@@ -140,9 +141,10 @@ void initPlaylist(void)
"line %i", param->value, param->line);
}
- playlist_saveAbsolutePaths = getBoolConfigParam(
- CONF_SAVE_ABSOLUTE_PATHS, 1);
- if (playlist_saveAbsolutePaths == CONF_BOOL_UNSET)
+ value = getBoolConfigParam(CONF_SAVE_ABSOLUTE_PATHS, 1);
+ if (value != CONF_BOOL_UNSET)
+ playlist_saveAbsolutePaths = value;
+ else
playlist_saveAbsolutePaths =
DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;