ble_mesh: Fix client local parameters not initialized

This commit is contained in:
lly 2020-04-08 21:32:05 +08:00 committed by bot
parent 713581ae87
commit 77bb7806a0

View file

@ -178,10 +178,10 @@ static s32_t bt_mesh_client_calc_timeout(struct bt_mesh_msg_ctx *ctx,
struct net_buf_simple *msg, struct net_buf_simple *msg,
u32_t opcode, s32_t timeout) u32_t opcode, s32_t timeout)
{ {
s32_t seg_retrans_to, duration, time; s32_t seg_retrans_to = 0, duration = 0, time = 0;
u8_t seg_count, seg_retrans_num; u8_t seg_count = 0, seg_retrans_num = 0;
u8_t mic_size; bool need_seg = false;
bool need_seg; u8_t mic_size = 0;
if (msg->len > UNSEG_ACCESS_MSG_MAX_LEN || ctx->send_rel) { if (msg->len > UNSEG_ACCESS_MSG_MAX_LEN || ctx->send_rel) {
need_seg = true; /* Needs segmentation */ need_seg = true; /* Needs segmentation */