From: Simon Wilkinson Date: Sun, 24 Apr 2011 19:29:37 +0000 (-0400) Subject: cmd tests: Initialise string retval X-Git-Tag: openafs-devel-1_7_1~499 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=cf9ef0bed92f63406123ff6bc706cf1ce4758b20 cmd tests: Initialise string retval The cmd_OptionAsString function attempts to free the previous value of the string passed to it. Make sure that we initialise the return value to NULL before passing it in in the test suite. Change-Id: I8500d5e6812f4d1655fc50618db472c745604e41 Reviewed-on: http://gerrit.openafs.org/4653 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/tests/cmd/command-t.c b/tests/cmd/command-t.c index 52f8ca8..f99c5d5 100644 --- a/tests/cmd/command-t.c +++ b/tests/cmd/command-t.c @@ -57,7 +57,7 @@ main(int argc, char **argv) int code; int tc; int retval; - char *retstring; + char *retstring = NULL; plan(79);