Commit 2f5626ce02fce8267ab48ceb6d7d0ed7d672a75e

Sandra Loosemore 2013-10-15T15:32:16

Fix testsuite bug

diff --git a/ChangeLog b/ChangeLog
index 45c87ac..c20ea9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-10  Sandra Loosemore  <sandra@codesourcery.com>
+
+	* testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
+	Fix uninitialized variable.
+
 2013-10-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
 
 	* testsuite/libffi.call/many.c (many): Replace * with +.
diff --git a/testsuite/libffi.call/cls_many_mixed_args.c b/testsuite/libffi.call/cls_many_mixed_args.c
index fc75b1d..18cdfcc 100644
--- a/testsuite/libffi.call/cls_many_mixed_args.c
+++ b/testsuite/libffi.call/cls_many_mixed_args.c
@@ -15,7 +15,7 @@ static void cls_ret_double_fn(ffi_cif* cif __UNUSED__, void* resp, void** args,
 			      void* userdata __UNUSED__)
 {
   int i;
-  double r;
+  double r = 0;
   double t;
   for(i = 0; i < NARGS; i++)
     {