mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-26 15:40:32 +00:00
CLEANUP: mailers: use pool_zalloc() in enqueue_one_email_alert()
This one used to alloc then zero the area, let's have the allocator do it.
This commit is contained in:
parent
ec4cfc3835
commit
3ab0a0bc88
@ -184,9 +184,8 @@ static int enqueue_one_email_alert(struct proxy *p, struct server *s,
|
||||
LIST_INIT(&alert->rules.preset_vars); /* unused for email alerts */
|
||||
alert->srv = s;
|
||||
|
||||
if ((tcpcheck = pool_alloc(pool_head_tcpcheck_rule)) == NULL)
|
||||
if ((tcpcheck = pool_zalloc(pool_head_tcpcheck_rule)) == NULL)
|
||||
goto error;
|
||||
memset(tcpcheck, 0, sizeof(*tcpcheck));
|
||||
tcpcheck->action = TCPCHK_ACT_CONNECT;
|
||||
tcpcheck->comment = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user