Skip to content

Commit 9dd7cf7

Browse files
Egor Shestakovwtarreau
authored andcommitted
BUG/MINOR: startup: fix allocation error message of progname string
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
1 parent bf7a280 commit 9dd7cf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/haproxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ static void init_early(int argc, char **argv)
14361436
len = strlen(progname);
14371437
progname = strdup(progname);
14381438
if (!progname) {
1439-
ha_alert("Cannot allocate memory for log_tag.\n");
1439+
ha_alert("Cannot allocate memory for progname.\n");
14401440
exit(EXIT_FAILURE);
14411441
}
14421442

0 commit comments

Comments
 (0)