mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
mesh: Fix uninitilized error
This fixes the following error: mesh/cfgmod-server.c: In function ‘cfg_srv_pkt’: mesh/cfgmod-server.c:103:5: error: ‘pub’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
This commit is contained in:
parent
a4f6905ea9
commit
6d2ecb1b54
@ -81,7 +81,7 @@ static bool config_pub_get(struct mesh_net *net, uint16_t src, uint16_t dst,
|
||||
uint32_t mod_id;
|
||||
uint16_t ele_addr;
|
||||
int ele_idx;
|
||||
struct mesh_model_pub *pub;
|
||||
struct mesh_model_pub *pub = NULL;
|
||||
int status;
|
||||
|
||||
if (size == 4)
|
||||
|
Loading…
Reference in New Issue
Block a user