Merge pull request #2188 from tonnenpinguin/pr/uninitialized_variables

Fix several uninitialized variables
This commit is contained in:
Nicolas Tsiftes 2017-04-21 17:59:12 +02:00 committed by GitHub
commit 66fe7abf79
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 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;

View file

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

View file

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