summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2021-08-23 16:49:31 +0000
committerDaniel Golle2021-08-24 17:31:41 +0000
commitaf048a34bc68f85427a230e3a2b4c196738e03f8 (patch)
treebd92089213a758bf20aa543ce23f85bfea6ba528
parent3edb7ebecb266db545fe2e79ef552a9b09beaa6f (diff)
downloadprocd-af048a34bc68f85427a230e3a2b4c196738e03f8.tar.gz
jail: use portable sizeof(void *)
Coverity CID: 1490010 Sizeof not portable Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--jail/jail.c2
1 files changed, 1 insertions, 1 deletions
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;