From: Valentine Krasnobaeva Date: Thu, 21 Nov 2024 16:59:52 +0000 (+0100) Subject: BUG/MINOR: startup: init_early: remove obsolete comment X-Git-Tag: v3.1-dev14~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=332839eb9d08a110950c17bc5af4322a44ece89c;p=thirdparty%2Fhaproxy.git BUG/MINOR: startup: init_early: remove obsolete comment This fixes the commit d6ccd1738bae ("MINOR: startup: set HAPROXY_LOCALPEER only once"). Comment "/* preset some environment variables */" is now useless here as HAPROXY_LOCALPEER is set later during the initialization stage and only once. This should not be backported, as related to the latest master-worker refactoring. --- diff --git a/src/haproxy.c b/src/haproxy.c index 7ba287a133..4fbead400a 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1571,7 +1571,6 @@ static void init_early(int argc, char **argv) memset(hostname, 0, sizeof(hostname)); gethostname(hostname, sizeof(hostname) - 1); - /* preset some environment variables */ localpeer = strdup(hostname); if (!localpeer) { ha_alert("Cannot allocate memory for local peer.\n");