Commit 8bd7b5b6 authored by Max Kellermann's avatar Max Kellermann

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).
parent d78be1ab
......@@ -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",
......
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