aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 07:37:32 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 07:37:32 +0200
commit8bd7b5b607028f16893871660769e8cbba5a3def (patch)
treea795224a2aff1be153d5167e39e817dfa02ed6b4
parentd78be1ab49d7483865f143f8d90cfafcefd0055b (diff)
downloadmpd-8bd7b5b607028f16893871660769e8cbba5a3def.tar.gz
mpd-8bd7b5b607028f16893871660769e8cbba5a3def.tar.xz
mpd-8bd7b5b607028f16893871660769e8cbba5a3def.zip
conf: use bp->value, not param->value
A recent change to the boolean parser introduced a bug: instead of using the block_param's value with get_bool(), we passed param->value (which is always NULL in this case).
Diffstat (limited to '')
-rw-r--r--src/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index 6209335d3..777cbe6ed 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -518,7 +518,7 @@ config_get_block_bool(const struct config_param *param, const char *name,
if (bp == NULL)
return default_value;
- success = get_bool(param->value, &value);
+ success = get_bool(bp->value, &value);
if (!success)
g_error("%s is not a boolean value (yes, true, 1) or "
"(no, false, 0) on line %i\n",