From: Daniel Golle Date: Mon, 23 Aug 2021 16:49:31 +0000 (+0100) Subject: jail: use portable sizeof(void *) X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=af048a34bc68f85427a230e3a2b4c196738e03f8;p=project%2Fprocd.git jail: use portable sizeof(void *) Coverity CID: 1490010 Sizeof not portable Signed-off-by: Daniel Golle --- diff --git a/jail/jail.c b/jail/jail.c index 43a694a..c02095b 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -2723,7 +2723,7 @@ int main(int argc, char **argv) /* deliberately not using 'else' on unrelated conditional branches */ if (!opts.ocibundle) { /* allocate NULL-terminated array for argv */ - opts.jail_argv = calloc(1 + argc - optind, sizeof(char**)); + opts.jail_argv = calloc(1 + argc - optind, sizeof(void *)); if (!opts.jail_argv) { ret=EXIT_FAILURE; goto errout;