Fixing coverity findings

A couple of the coverity analysis findings are being treated here. For
the rest there will be a separate PR.
pull/8183/head
Hasnain Virk 2018-09-21 15:53:45 +03:00
parent 0d3ec26b4a
commit bc976c6545
2 changed files with 2 additions and 2 deletions

View File

@ -1862,7 +1862,6 @@ uint8_t LoRaMac::get_max_possible_tx_size(uint8_t fopts_len)
max_possible_payload_size = allowed_frm_payload_size - fopts_len;
} else {
max_possible_payload_size = allowed_frm_payload_size;
fopts_len = 0;
_mac_commands.clear_command_buffer();
_mac_commands.clear_repeat_buffer();
}

View File

@ -36,7 +36,8 @@ SPDX-License-Identifier: BSD-3-Clause
#define CHANNELS_IN_MASK 16
LoRaPHY::LoRaPHY()
: _radio(NULL)
: _radio(NULL),
_lora_time(NULL)
{
memset(&phy_params, 0, sizeof(phy_params));
}