mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 12:55:43 +08:00
apps/nshlib: fix warning by tools converity report
uninit_use_in_call inaddr.sin_zero before call netlib_set_arpmapping Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -1028,6 +1028,7 @@ int cmd_arp(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
* arp -s <ipaddr> <hwaddr>
|
||||
*/
|
||||
|
||||
memset(&inaddr, 0, sizeof(inaddr));
|
||||
#ifdef CONFIG_NETLINK_ROUTE
|
||||
if (strcmp(argv[1], "-t") == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user