Commit 285a741b authored by Max Kellermann's avatar Max Kellermann

playlist: don't store getBoolConfigParam() in a bool

getBoolConfigParam() returns an int. It is not possible to check for CONF_BOOL_UNSET after it has been assigned to a bool; use a temporary int value for that.
parent 2a7d9970
...@@ -121,6 +121,7 @@ void initPlaylist(void) ...@@ -121,6 +121,7 @@ void initPlaylist(void)
{ {
char *test; char *test;
ConfigParam *param; ConfigParam *param;
int value;
g_rand = g_rand_new(); g_rand = g_rand_new();
...@@ -140,9 +141,10 @@ void initPlaylist(void) ...@@ -140,9 +141,10 @@ void initPlaylist(void)
"line %i", param->value, param->line); "line %i", param->value, param->line);
} }
playlist_saveAbsolutePaths = getBoolConfigParam( value = getBoolConfigParam(CONF_SAVE_ABSOLUTE_PATHS, 1);
CONF_SAVE_ABSOLUTE_PATHS, 1); if (value != CONF_BOOL_UNSET)
if (playlist_saveAbsolutePaths == CONF_BOOL_UNSET) playlist_saveAbsolutePaths = value;
else
playlist_saveAbsolutePaths = playlist_saveAbsolutePaths =
DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS; DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment