From: Aurelien DARRAGON Date: Fri, 7 Mar 2025 09:57:04 +0000 (+0100) Subject: CLEANUP: log-forward: remove useless options2 init X-Git-Tag: v3.2-dev8~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b8520305ef853ced878e080ea25078c07e03d32;p=thirdparty%2Fhaproxy.git CLEANUP: log-forward: remove useless options2 init It is actually not required to zero out proxy->options2 since proxy is allocated using calloc() which already does it. --- diff --git a/src/log.c b/src/log.c index 17a716e75..e0cb813a3 100644 --- a/src/log.c +++ b/src/log.c @@ -6029,7 +6029,6 @@ int cfg_parse_log_forward(const char *file, int linenum, char **args, int kwm) px->accept = frontend_accept; px->default_target = &syslog_applet.obj_type; px->id = strdup(args[1]); - px->options2 = 0; } else if (strcmp(args[0], "maxconn") == 0) { /* maxconn */ if (warnifnotcap(cfg_log_forward, PR_CAP_FE, file, linenum, args[0], " Maybe you want 'fullconn' instead ?"))