[MINOR] config: report "default-server" instead of "(null)" in error messages

When an error is reported in a default-server entry, we want to have
that name in the error message instead of "(null)".
This commit is contained in:
Willy Tarreau 2010-04-07 16:06:40 +02:00
parent 8a8e1d99cb
commit 70160200e0

View file

@ -1118,6 +1118,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
/* set default values */
memcpy(&curproxy->defsrv, &defproxy.defsrv, sizeof(curproxy->defsrv));
curproxy->defsrv.id = "default-server";
curproxy->state = defproxy.state;
curproxy->options = defproxy.options;