]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: startup: fix allocation error message of progname string
authorEgor Shestakov <egor@ved1.me>
Thu, 5 Feb 2026 08:55:57 +0000 (08:55 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Feb 2026 09:50:31 +0000 (10:50 +0100)
Initially when init_early was introduced the progname string was a local
used for temporary storage of log_tag. Now it's global and detached from
log_tag enough. Thus, in the past we could inform that log_tag
allocation has been failed but not now.

Must be backported since the progname string became global, that is
v3.1-dev9-96-g49772c55e

src/haproxy.c

index 99341730a47e3e0753031e603e2e92c8287173b9..0ae755faaaea26c3848ca0ac405cb66584421fa3 100644 (file)
@@ -1436,7 +1436,7 @@ static void init_early(int argc, char **argv)
        len = strlen(progname);
        progname = strdup(progname);
        if (!progname) {
-               ha_alert("Cannot allocate memory for log_tag.\n");
+               ha_alert("Cannot allocate memory for progname.\n");
                exit(EXIT_FAILURE);
        }