mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
apps/nshlib: fix warning by tool converity report
uninit_use_in_call addr before call netlib_set_ipv4addr at line 780 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -776,6 +776,10 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
gip = addr.s_addr;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
addr.s_addr = 0;
|
||||
}
|
||||
|
||||
netlib_set_ipv4addr(ifname, &addr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user