mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-03 22:00:34 -05:00
CLEANUP: proxy: calloc call inverted arguments
Nothing major but a human typo mistake.
This commit is contained in:
parent
081b336f7d
commit
087ca283e4
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ static int proxy_parse_declare(char **args, int section, struct proxy *curpx,
|
|||
}
|
||||
|
||||
/* 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->namelen = 0;
|
||||
hdr->len = len;
|
||||
|
|
|
|||
Loading…
Reference in a new issue