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