public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] fix uninitialized variable in testsuite
@ 2013-10-11  1:40 Sandra Loosemore
  2013-10-15 19:39 ` Anthony Green
  0 siblings, 1 reply; 5+ messages in thread
From: Sandra Loosemore @ 2013-10-11  1:40 UTC (permalink / raw)
  To: libffi-discuss

[-- Attachment #1: Type: text/plain, Size: 127 bytes --]

I found that the test cls_many_mixed_args.c was failing due to an 
uninitialized variable.  This patch fixes it.  OK?

-Sandra

[-- Attachment #2: libffi-testsuite-fix.log --]
[-- Type: text/x-log, Size: 154 bytes --]

2013-10-10  Sandra Loosemore  <sandra@codesourcery.com>

	* testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
	Fix uninitialized variable.

[-- Attachment #3: libffi-testsuite-fix.patch --]
[-- Type: text/x-patch, Size: 461 bytes --]

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++)
     {

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-16  3:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-11  1:40 [PATCH] fix uninitialized variable in testsuite Sandra Loosemore
2013-10-15 19:39 ` Anthony Green
2013-10-16  1:41   ` Jay
2013-10-16  2:15     ` Anthony Green
2013-10-16  3:08       ` Sandra Loosemore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).