Fix debug assertion in config.c
The debug assertion was triggered due to a wrongly structured conditional statement.
This commit is contained in:
parent
2202ec7a33
commit
548182afe3
@ -387,10 +387,12 @@ ini_handler(void *userdata, const char *section, const char *name, const char *v
|
||||
cntxt->next = ptr;
|
||||
}
|
||||
|
||||
if (config_get_param(ptr->parameters, name) &&
|
||||
!config_append_param(ptr, name, value))
|
||||
if (config_get_param(ptr->parameters, name))
|
||||
{
|
||||
return 0;
|
||||
if (!config_append_param(ptr, name, value))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else if (!config_add_param(ptr, name, value))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user