public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sandra Loosemore <sandra@codesourcery.com>
To: <libffi-discuss@sourceware.org>
Subject: [PATCH] fix uninitialized variable in testsuite
Date: Fri, 11 Oct 2013 01:40:00 -0000	[thread overview]
Message-ID: <5257570B.4050600@codesourcery.com> (raw)

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

             reply	other threads:[~2013-10-11  1:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11  1:40 Sandra Loosemore [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5257570B.4050600@codesourcery.com \
    --to=sandra@codesourcery.com \
    --cc=libffi-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).