Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 2/3 v2] Fix uninitialized variable warning
@ 2011-03-29 13:47 luiz.dentz
  2011-03-29 13:47 ` [PATCH 3/3 v2] Fix uninitialized variables warnings luiz.dentz
  0 siblings, 1 reply; 3+ messages in thread
From: luiz.dentz @ 2011-03-29 13:47 UTC (permalink / raw)
  To: linux-bluetooth

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/health/mcap.c b/health/mcap.c
index 81fd8df..48866d4 100644
--- a/health/mcap.c
+++ b/health/mcap.c
@@ -1126,6 +1126,7 @@ static void process_md_abort_mdl_req(struct mcap_mcl *mcl, void *cmd,
 	req = cmd;
 	mdl_id = ntohs(req->mdl);
 	mcl->state = MCL_CONNECTED;
+	abrt = NULL;
 	for (l = mcl->mdls; l; l = l->next) {
 		mdl = l->data;
 		if (mdl_id == mdl->mdlid && mdl->state == MDL_WAITING) {
-- 
1.7.4.1


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

end of thread, other threads:[~2011-03-29 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29 13:47 [PATCH 2/3 v2] Fix uninitialized variable warning luiz.dentz
2011-03-29 13:47 ` [PATCH 3/3 v2] Fix uninitialized variables warnings luiz.dentz
2011-03-29 15:08   ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox