Skip to content

Commit

Permalink
bluetooth: mesh: brg_cfg_cli: Initialize prohibited value
Browse files Browse the repository at this point in the history
Coverity complains about uninitialized prohibited fields. Even though it
is not used because it is "prohibited", it is simpler to just
initialized it with the value received from a server.

Fixes zephyrproject-rtos#81939
Coverity-CID: 434649

Signed-off-by: Pavel Vasilyev <[email protected]>
  • Loading branch information
PavelVPV authored and aescolar committed Nov 28, 2024
1 parent 5ae4f11 commit 2041682
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/bluetooth/mesh/brg_cfg_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static int subnets_list(const struct bt_mesh_model *model, struct bt_mesh_msg_ct

net_idx_filter = net_buf_simple_pull_le16(buf);
subnets_list.net_idx_filter.filter = net_idx_filter & BIT_MASK(2);
subnets_list.net_idx_filter.prohibited = (net_idx_filter >> 2) & BIT_MASK(2);
subnets_list.net_idx_filter.net_idx = (net_idx_filter >> 4) & BIT_MASK(12);
subnets_list.start_idx = net_buf_simple_pull_u8(buf);

Expand Down

0 comments on commit 2041682

Please sign in to comment.