From de6cf72670f0d912200cb4f0476bc5fb2a90bb67 Mon Sep 17 00:00:00 2001
From: Stanislaw Gruszka <stanislaw.gruszka@iopsys.eu>
Date: Mon, 21 Mar 2022 15:04:36 +0100
Subject: [PATCH] fix uninitialized mid

---
 src/cntlr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cntlr.c b/src/cntlr.c
index 35ca40d4..d3f5538d 100644
--- a/src/cntlr.c
+++ b/src/cntlr.c
@@ -1994,7 +1994,7 @@ static void send_buildcmdu_cb(struct ubus_request *req,
 	uint8_t *tlv = NULL;
 	struct cmdu_buff *cmdu = NULL;
 	struct controller *c;
-	uint16_t mid;
+	uint16_t mid = 0;
 	struct blob_attr *tb[2];
 	static const struct blobmsg_policy cb_attr[2] = {
 		[0] = { .name = "type", .type = BLOBMSG_TYPE_INT32 },
-- 
GitLab