From 5de70880a685055bb017289fa739a97c85b681ea Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 29 Mar 2011 16:47:43 +0300 Subject: [PATCH] Fix uninitialized variable warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 file changed, 1 insertion(+) 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) { -- 2.47.3