From af048a34bc68f85427a230e3a2b4c196738e03f8 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 23 Aug 2021 17:49:31 +0100 Subject: [PATCH] jail: use portable sizeof(void *) Coverity CID: 1490010 Sizeof not portable Signed-off-by: Daniel Golle --- jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2