mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
f322b0ff1e
commit
a666bfd67b
@ -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 <call number> <parms>\n");
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user