mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-24 23:18:23 +00:00
wireless/wapi.c: Initialize variables to avoid abnormal
data when wapi get country code.
This commit is contained in:
parent
a7024aea89
commit
8d82bd7b76
1 changed files with 1 additions and 0 deletions
|
|
@ -911,6 +911,7 @@ static int wapi_country_cmd(int sock, int argc, FAR char **argv)
|
|||
|
||||
if (argc == 1)
|
||||
{
|
||||
memset(country, 0, sizeof(country));
|
||||
ret = wapi_get_country(sock, argv[0], country);
|
||||
if (ret >= 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue