From 332839eb9d08a110950c17bc5af4322a44ece89c Mon Sep 17 00:00:00 2001 From: Valentine Krasnobaeva Date: Thu, 21 Nov 2024 17:59:52 +0100 Subject: [PATCH] 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. --- src/haproxy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index 7ba287a13..4fbead400 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");