mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-30 12:32:37 +00:00
Fixed uninitalized variable warnings (using gcc 4.1.1)
This commit is contained in:
parent
b4f1deaa46
commit
a3d912a801
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user