commit | ec4a8754da59e00b6313dbc10a081badfb37bf33 | [log] [tgz] |
---|---|---|
author | Tim Duesterhus <tim@bastelstu.be> | Wed Sep 15 13:58:46 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Sep 17 17:22:05 2021 +0200 |
tree | 3451541ea0cf426e54dc96d83c8446a96962c29f | |
parent | 02fa646a373aedaf43b946169ccbe31e82d265b5 [diff] [blame] |
CLEANUP: Apply xalloc_size.cocci This fixes a few locations with a hardcoded type within `sizeof()`.
diff --git a/src/errors.c b/src/errors.c index d2eafce..993b6ae 100644 --- a/src/errors.c +++ b/src/errors.c
@@ -126,7 +126,7 @@ int ret; if (unlikely(b_is_null(&ctx->str))) { - area = calloc(USERMSGS_CTX_BUFSIZE, sizeof(char)); + area = calloc(USERMSGS_CTX_BUFSIZE, sizeof(*area)); if (area) ctx->str = b_make(area, USERMSGS_CTX_BUFSIZE, 0, 0); }