Skip to content

Commit

Permalink
wireless/wapi.c: Initialize variables to avoid abnormal
Browse files Browse the repository at this point in the history
data when wapi get country code.
  • Loading branch information
nuttxs authored and xiaoxiang781216 committed Oct 18, 2024
1 parent a7024ae commit 8d82bd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wireless/wapi/src/wapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8d82bd7

Please sign in to comment.