Fix testsuite bug
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 15 Oct 2013 19:32:16 +0000 (15:32 -0400)
committerAnthony Green <green@moxielogic.com>
Tue, 15 Oct 2013 19:32:16 +0000 (15:32 -0400)
ChangeLog
testsuite/libffi.call/cls_many_mixed_args.c

index 45c87ac..c20ea9b 100644 (file)
--- 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 +.
index fc75b1d..18cdfcc 100644 (file)
@@ -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++)
     {