From: David CARLIER Date: Wed, 25 Nov 2015 15:27:36 +0000 (+0000) Subject: CLEANUP: proxy: calloc call inverted arguments X-Git-Tag: v1.7-dev1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=087ca283e47efe7f3f86876eeb2979a0e6180bf5;p=thirdparty%2Fhaproxy.git CLEANUP: proxy: calloc call inverted arguments Nothing major but a human typo mistake. --- diff --git a/src/proxy.c b/src/proxy.c index 194d4bdf60..3939beefcb 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -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;