Only add default value if none is provided
The default parameter values should only be added if the configuration doesn't have that parameter.
This commit is contained in:
parent
9fa2de29d9
commit
ae31e3b0b5
@ -2678,7 +2678,8 @@ static void config_add_defaults(CONFIG_CONTEXT *ctx, const char *module, const c
|
||||
{
|
||||
for (int i = 0; mod->parameters[i].name; i++)
|
||||
{
|
||||
if (mod->parameters[i].default_value)
|
||||
if (mod->parameters[i].default_value &&
|
||||
config_get_param(ctx->parameters, mod->parameters[i].name) == NULL)
|
||||
{
|
||||
ss_dassert(config_param_is_valid(module, type, mod->parameters[i].name,
|
||||
mod->parameters[i].default_value, ctx));
|
||||
|
Loading…
x
Reference in New Issue
Block a user