From: Willy Tarreau Date: Wed, 7 Apr 2010 14:06:40 +0000 (+0200) Subject: [MINOR] config: report "default-server" instead of "(null)" in error messages X-Git-Tag: v1.4.4~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=70160200e0d9742b02154fb7240f29a63a58d2f0;p=thirdparty%2Fhaproxy.git [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)". --- diff --git a/src/cfgparse.c b/src/cfgparse.c index dca5e6c57e..f25cc76ee4 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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;