All configuration parameters now support multi-line style.
This commit is contained in:
@ -173,8 +173,6 @@ CONFIG_PARAMETER *param, *p1;
|
||||
while (p1)
|
||||
{
|
||||
if (!strcmp(p1->name, name))
|
||||
{
|
||||
if(strcmp(name,"router_options") == 0 || strcmp(name,"options"))
|
||||
{
|
||||
char* tmp;
|
||||
|
||||
@ -187,23 +185,8 @@ CONFIG_PARAMETER *param, *p1;
|
||||
strcat(tmp,value);
|
||||
free(p1->value);
|
||||
p1->value = tmp;
|
||||
if(p1->qfd_param_type == STRING_TYPE && p1->qfd.valstr != NULL)
|
||||
{
|
||||
free(p1->qfd.valstr);
|
||||
p1->qfd.valstr = strdup(p1->value);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGIF(LE, (skygw_log_write_flush(
|
||||
LOGFILE_ERROR,
|
||||
"Error : Configuration object '%s' has multiple "
|
||||
"parameters names '%s'.",
|
||||
ptr->object, name)));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
p1 = p1->next;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user