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).
This commit is contained in:
Max Kellermann 2009-07-06 07:37:32 +02:00
parent d78be1ab49
commit 8bd7b5b607

View File

@ -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",