From a666bfd67bd14028aac5eb49f1bf02576fb58405 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 2 Mar 2013 10:42:27 +0000 Subject: [PATCH] vsys: Avoid uninitialised variable warning Initialise the parms array to 0 so that we don't get warnings from the compiler when we call syscall() using it. Caught by coverity (#985949) Change-Id: I134841bcb334d06146386e55ebfa38c7be993311 Reviewed-on: http://gerrit.openafs.org/9395 Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman --- src/afsd/vsys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/afsd/vsys.c b/src/afsd/vsys.c index 13a8ae6738..44f4281626 100644 --- a/src/afsd/vsys.c +++ b/src/afsd/vsys.c @@ -33,6 +33,8 @@ main(int argc, char **argv) afs_int32 parms[6]; int numberFlag; + memset(&parms, 0, sizeof(parms)); + if (argc < 2) { printf("use: vsys \n"); exit(1);