mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-04 05:39:53 +00:00
try to fix another warning from static code analysis
This commit is contained in:
parent
406874b6c2
commit
f9d80d5bd2
@ -63,6 +63,11 @@ static struct nse node_stack[NODE_STACK_SIZE];
|
|||||||
static void
|
static void
|
||||||
push_node(struct nse* node)
|
push_node(struct nse* node)
|
||||||
{
|
{
|
||||||
|
if (node->r_ptr == NULL) {
|
||||||
|
/* set uninitialized fields to known values */
|
||||||
|
node->r_id = 0;
|
||||||
|
node->r_nl = 0;
|
||||||
|
}
|
||||||
LWIP_ASSERT("node_stack_cnt < NODE_STACK_SIZE",node_stack_cnt < NODE_STACK_SIZE);
|
LWIP_ASSERT("node_stack_cnt < NODE_STACK_SIZE",node_stack_cnt < NODE_STACK_SIZE);
|
||||||
LWIP_DEBUGF(SNMP_MIB_DEBUG,("push_node() node=%p id=%"S32_F"\n",(void*)(node->r_ptr),node->r_id));
|
LWIP_DEBUGF(SNMP_MIB_DEBUG,("push_node() node=%p id=%"S32_F"\n",(void*)(node->r_ptr),node->r_id));
|
||||||
if (node_stack_cnt < NODE_STACK_SIZE)
|
if (node_stack_cnt < NODE_STACK_SIZE)
|
||||||
|
Loading…
Reference in New Issue
Block a user