viced: clear optstring before parsing

we try to free the string if there was a value, so
if there's none we should probably ensure we know it

Change-Id: I20fc535e56d65c82f26852ba59528d5660c98e20
Reviewed-on: http://gerrit.openafs.org/7546
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Derrick Brashear 2012-06-08 19:52:33 -04:00
parent 7273c8b4ae
commit a8e35e9fd7

View File

@ -984,7 +984,7 @@ ParseArgs(int argc, char *argv[])
{ {
int code; int code;
int optval; int optval;
char *optstring; char *optstring = NULL;
struct cmd_item *optlist; struct cmd_item *optlist;
struct cmd_syndesc *opts; struct cmd_syndesc *opts;