From: Derrick Brashear Date: Fri, 8 Jun 2012 23:52:33 +0000 (-0400) Subject: viced: clear optstring before parsing X-Git-Tag: openafs-stable-1_8_0pre1~2346 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=a8e35e9fd7b24b6d8523a3ac9da0f77c84423ef9 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 Tested-by: Derrick Brashear --- diff --git a/src/viced/viced.c b/src/viced/viced.c index f03ac08..fcafe3e 100644 --- a/src/viced/viced.c +++ b/src/viced/viced.c @@ -984,7 +984,7 @@ ParseArgs(int argc, char *argv[]) { int code; int optval; - char *optstring; + char *optstring = NULL; struct cmd_item *optlist; struct cmd_syndesc *opts;