mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
cmd: Correctly initialize cmd_OptionAsString arguments
These are coming from the stack and as such they might not be NULL. Change-Id: Ia5c6efd08574b4de05a11dceae47021b0160395b Reviewed-on: http://gerrit.openafs.org/10475 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
parent
779ab18baf
commit
a95b1f2f15
@ -242,10 +242,10 @@ static int
|
||||
ParseArgs(int argc, char **argv) {
|
||||
int code;
|
||||
int optval;
|
||||
char *optstring;
|
||||
char *optstring = NULL;
|
||||
struct cmd_syndesc *opts;
|
||||
char *sleepSpec;
|
||||
char *sync_behavior;
|
||||
char *sleepSpec = NULL;
|
||||
char *sync_behavior = NULL;
|
||||
|
||||
opts = cmd_CreateSyntax(NULL, NULL, NULL, NULL);
|
||||
cmd_AddParmAtOffset(opts, OPT_log, "-log", CMD_FLAG, CMD_OPTIONAL,
|
||||
|
Loading…
Reference in New Issue
Block a user