diff --git a/src/volser/volmain.c b/src/volser/volmain.c index 6c6ad53594..f8bbd2f73e 100644 --- a/src/volser/volmain.c +++ b/src/volser/volmain.c @@ -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,