Skip to content

Commit c5757ca

Browse files
trond-snekviknashif
authored andcommitted
Bluetooth: Mesh: Initialize UUID in shell's mod_pub_set
PR #35774 introduced a uuid field in the bt_mesh_cfg_mod_pub structure. The shell does not initialize this pointer before passing it to the access layer. Add a line to initialize this pointer. Fixes #38016. Signed-off-by: Trond Einar Snekvik <[email protected]>
1 parent 4eb047d commit c5757ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/mesh/shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,7 @@ static int mod_pub_set(const struct shell *shell, uint16_t addr, uint16_t mod_id
16381638
int err;
16391639

16401640
pub.addr = strtoul(argv[0], NULL, 0);
1641+
pub.uuid = NULL;
16411642
pub.app_idx = strtoul(argv[1], NULL, 0);
16421643
pub.cred_flag = str2bool(argv[2]);
16431644
pub.ttl = strtoul(argv[3], NULL, 0);

0 commit comments

Comments
 (0)