commit | 087ca283e47efe7f3f86876eeb2979a0e6180bf5 | [log] [tgz] |
---|---|---|
author | David CARLIER <devnexen@gmail.com> | Wed Nov 25 15:27:36 2015 +0000 |
committer | Willy Tarreau <w@1wt.eu> | Thu Dec 03 11:37:01 2015 +0100 |
tree | 58a9582874953dfaa8c20354ff03ed7d8c16a75a | |
parent | 081b336f7d0e82b61e9dee32f291b976cc49a67f [diff] |
CLEANUP: proxy: calloc call inverted arguments Nothing major but a human typo mistake.
diff --git a/src/proxy.c b/src/proxy.c index 194d4bd..3939bee 100644 --- a/src/proxy.c +++ b/src/proxy.c
@@ -414,7 +414,7 @@ } /* 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;