mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-13 18:46:57 +02:00
BUG/MINOR: startup: init_early: remove obsolete comment
This fixes the commit d6ccd1738b
("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));
|
memset(hostname, 0, sizeof(hostname));
|
||||||
gethostname(hostname, sizeof(hostname) - 1);
|
gethostname(hostname, sizeof(hostname) - 1);
|
||||||
|
|
||||||
/* preset some environment variables */
|
|
||||||
localpeer = strdup(hostname);
|
localpeer = strdup(hostname);
|
||||||
if (!localpeer) {
|
if (!localpeer) {
|
||||||
ha_alert("Cannot allocate memory for local peer.\n");
|
ha_alert("Cannot allocate memory for local peer.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user