From: Derrick Brashear Date: Fri, 8 Jun 2012 23:52:33 +0000 (-0400) Subject: viced: clear optstring before parsing X-Git-Tag: upstream/1.8.0_pre1^2~2346 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a8e35e9fd7b24b6d8523a3ac9da0f77c84423ef9;p=packages%2Fo%2Fopenafs.git 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 f03ac0876..fcafe3e7a 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;