From: luiz.dentz@gmail.com
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 2/3] Fix uninitialized variable warning
Date: Tue, 29 Mar 2011 14:36:54 +0300 [thread overview]
Message-ID: <1301398615-16283-2-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1301398615-16283-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
health/mcap.c: In function ‘proc_req_pending’:
health/mcap.c:1119:25: error: ‘abrt’ may be used uninitialized in this function
make[1]: *** [health/mcap.o] Error 1
---
health/mcap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/health/mcap.c b/health/mcap.c
index 81fd8df..a36f2c0 100644
--- a/health/mcap.c
+++ b/health/mcap.c
@@ -1116,7 +1116,7 @@ static void process_md_abort_mdl_req(struct mcap_mcl *mcl, void *cmd,
{
mcap_md_req *req;
GSList *l;
- struct mcap_mdl *mdl, *abrt;
+ struct mcap_mdl *mdl, *abrt = NULL;
uint16_t mdl_id;
if (!check_cmd_req_length(mcl, cmd, len, sizeof(mcap_md_req),
--
1.7.4.1
next prev parent reply other threads:[~2011-03-29 11:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 11:36 [PATCH 1/3] Fix uninitialized variable warning luiz.dentz
2011-03-29 11:36 ` luiz.dentz [this message]
2011-03-29 11:36 ` [PATCH 3/3] Fix uninitialized variables warnings luiz.dentz
2011-03-29 13:10 ` Anderson Lizardo
2011-03-29 13:18 ` Luiz Augusto von Dentz
2011-03-29 13:20 ` Anderson Lizardo
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=1301398615-16283-2-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.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