summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorguo <[email protected]>2021-12-02 10:09:37 +0800
committerGitHub <[email protected]>2021-12-02 10:09:37 +0800
commitfda37d55f8363d97dfc31c8e86b014c04cda2c10 (patch)
tree66742824f17fc0f221732fde4d1a15402b7a8554 /components/net
parent1d4594c6fcad494ef256c9bbd8aa7d64132a0995 (diff)
parent1cf8370b1ba5eca639e4b976f1e878753ee41548 (diff)
Merge pull request #5319 from RT-Thread/master
【PSE分支】同步master到PSE分支
Diffstat (limited to 'components/net')
-rw-r--r--components/net/at/at_socket/at_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/at/at_socket/at_socket.c b/components/net/at/at_socket/at_socket.c
index e9dabbe03d..ef6baee8c5 100644
--- a/components/net/at/at_socket/at_socket.c
+++ b/components/net/at/at_socket/at_socket.c
@@ -1107,7 +1107,7 @@ static uint32_t ipstr_to_u32(char *ipstr)
struct hostent *at_gethostbyname(const char *name)
{
struct at_device *device = RT_NULL;
- ip_addr_t addr;
+ ip_addr_t addr = {0};
char ipstr[16] = { 0 };
/* buffer variables for at_gethostbyname() */
static struct hostent s_hostent;