Skip to content

Commit b8bbd74

Browse files
Johan HedbergAnas Nashif
authored andcommitted
Bluetooth: Mesh: Fix potential access to uninitialized variable
Signed-off-by: Johan Hedberg <[email protected]>
1 parent 35c025f commit b8bbd74

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host/mesh

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/mesh/cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ static void mod_sub_va_overwrite(struct bt_mesh_model *model,
16941694
struct bt_mesh_msg_ctx *ctx,
16951695
struct net_buf_simple *buf)
16961696
{
1697-
u16_t elem_addr, sub_addr;
1697+
u16_t elem_addr, sub_addr = BT_MESH_ADDR_UNASSIGNED;
16981698
struct bt_mesh_model *mod;
16991699
struct bt_mesh_elem *elem;
17001700
u8_t *label_uuid;

0 commit comments

Comments
 (0)