]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: startup: init_early: remove obsolete comment
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 21 Nov 2024 16:59:52 +0000 (17:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 18:55:21 +0000 (19:55 +0100)
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

index 7ba287a133a0af49fbead0226949b204d4e1ac71..4fbead400aecca295c263465924961e60e709ace 100644 (file)
@@ -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");