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.
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");