summaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2011-03-29 16:47:43 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-29 18:05:56 +0300
commit5de70880a685055bb017289fa739a97c85b681ea (patch)
tree46a3cfa83816af96d9fab947c38c80adde174561 /health
parentd5040dd605547671ad2b91eb66328b8f113afdc3 (diff)
downloadbluez-5de70880a685055bb017289fa739a97c85b681ea.tar.gz
Fix uninitialized variable warning
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
Diffstat (limited to 'health')
-rw-r--r--health/mcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/health/mcap.c b/health/mcap.c
index 81fd8df1a..48866d494 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) {