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:
Luiz Augusto von Dentz 2018-08-24 17:49:02 +03:00
parent a4f6905ea9
commit 6d2ecb1b54

View File

@ -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)