Fixed uninitalized variable warnings (using gcc 4.1.1)

This commit is contained in:
christiaans 2006-11-27 15:37:44 +00:00
parent b4f1deaa46
commit a3d912a801
2 changed files with 3 additions and 1 deletions

View File

@ -1083,6 +1083,8 @@ snmp_expand_tree(struct mib_node *node, u8_t ident_len, s32_t *ident, struct snm
/* find right child ptr */
child.r_ptr = NULL;
child.r_id = 0;
child.r_nl = 0;
while ((node_stack_cnt > 0) && (child.r_ptr == NULL))
{
pop_node(&child);

View File

@ -825,7 +825,7 @@ snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *addr,
err_t err_ret;
u16_t payload_len;
u16_t payload_ofs;
u16_t varbind_ofs;
u16_t varbind_ofs = 0;
/* accepting request */
snmp_inc_snmpinpkts();