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:
parent
d78be1ab49
commit
8bd7b5b607
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user