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:
Chas Williams (CONTRACTOR) 2013-11-20 13:57:13 -05:00 committed by Derrick Brashear
parent 779ab18baf
commit a95b1f2f15

View File

@ -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,