From cf9ef0bed92f63406123ff6bc706cf1ce4758b20 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 24 Apr 2011 15:29:37 -0400 Subject: [PATCH] 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 --- tests/cmd/command-t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.9.4