Merge pull request #2188 from tonnenpinguin/pr/uninitialized_variables
Fix several uninitialized variables
This commit is contained in:
commit
66fe7abf79
|
@ -205,7 +205,7 @@ frame802154_has_panid(frame802154_fcf_t *fcf, int *has_src_pan_id, int *has_dest
|
||||||
int
|
int
|
||||||
frame802154_check_dest_panid(frame802154_t *frame)
|
frame802154_check_dest_panid(frame802154_t *frame)
|
||||||
{
|
{
|
||||||
int has_dest_panid;
|
int has_dest_panid = 0;
|
||||||
|
|
||||||
if(frame == NULL) {
|
if(frame == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -652,6 +652,7 @@ dao_input_storing(void)
|
||||||
|
|
||||||
prefixlen = 0;
|
prefixlen = 0;
|
||||||
parent = NULL;
|
parent = NULL;
|
||||||
|
memset(&prefix, 0, sizeof(prefix));
|
||||||
|
|
||||||
uip_ipaddr_copy(&dao_sender_addr, &UIP_IP_BUF->srcipaddr);
|
uip_ipaddr_copy(&dao_sender_addr, &UIP_IP_BUF->srcipaddr);
|
||||||
|
|
||||||
|
|
|
@ -1587,7 +1587,7 @@ get_object(radio_param_t param, void *dest, size_t size)
|
||||||
static radio_result_t
|
static radio_result_t
|
||||||
set_object(radio_param_t param, const void *src, size_t size)
|
set_object(radio_param_t param, const void *src, size_t size)
|
||||||
{
|
{
|
||||||
radio_result_t rv;
|
radio_result_t rv = RADIO_RESULT_OK;
|
||||||
int i;
|
int i;
|
||||||
uint8_t *dst;
|
uint8_t *dst;
|
||||||
rfc_CMD_IEEE_RX_t *cmd = (rfc_CMD_IEEE_RX_t *)cmd_ieee_rx_buf;
|
rfc_CMD_IEEE_RX_t *cmd = (rfc_CMD_IEEE_RX_t *)cmd_ieee_rx_buf;
|
||||||
|
|
Loading…
Reference in a new issue