Fix several uninitialized variables

This commit is contained in:
Bernhard Hackl 2017-04-11 05:25:18 -07:00
parent 078359127b
commit 848f801460
3 changed files with 3 additions and 2 deletions

View File

@ -205,7 +205,7 @@ frame802154_has_panid(frame802154_fcf_t *fcf, int *has_src_pan_id, int *has_dest
int
frame802154_check_dest_panid(frame802154_t *frame)
{
int has_dest_panid;
int has_dest_panid = 0;
if(frame == NULL) {
return 0;

View File

@ -652,6 +652,7 @@ dao_input_storing(void)
prefixlen = 0;
parent = NULL;
memset(&prefix, 0, sizeof(prefix));
uip_ipaddr_copy(&dao_sender_addr, &UIP_IP_BUF->srcipaddr);

View File

@ -1587,7 +1587,7 @@ get_object(radio_param_t param, void *dest, size_t size)
static radio_result_t
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;
uint8_t *dst;
rfc_CMD_IEEE_RX_t *cmd = (rfc_CMD_IEEE_RX_t *)cmd_ieee_rx_buf;