mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-26 08:11:21 +02:00
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.
This commit is contained in:
parent
aa88d6ee37
commit
332839eb9d
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user