CLEANUP: proxy: calloc call inverted arguments

Nothing major but a human typo mistake.
This commit is contained in:
David CARLIER 2015-11-25 15:27:36 +00:00 committed by Willy Tarreau
parent 081b336f7d
commit 087ca283e4

View File

@ -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;