mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02:00
CLEANUP: proxy: calloc call inverted arguments
Nothing major but a human typo mistake.
This commit is contained in:
parent
081b336f7d
commit
087ca283e4
@ -414,7 +414,7 @@ static int proxy_parse_declare(char **args, int section, struct proxy *curpx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* register the capture. */
|
/* register the capture. */
|
||||||
hdr = calloc(sizeof(struct cap_hdr), 1);
|
hdr = calloc(1, sizeof(struct cap_hdr));
|
||||||
hdr->name = NULL; /* not a header capture */
|
hdr->name = NULL; /* not a header capture */
|
||||||
hdr->namelen = 0;
|
hdr->namelen = 0;
|
||||||
hdr->len = len;
|
hdr->len = len;
|
||||||
|
Loading…
Reference in New Issue
Block a user