Merge pull request #2898 from ouyangshengduo/master

修改at_socket.c文件中的sendto函数,len局部变量没有给初始值
This commit is contained in:
Bernard Xiong 2019-07-29 13:31:43 +08:00 committed by GitHub
commit fafdbeaf78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ int at_recv(int s, void *mem, size_t len, int flags)
int at_sendto(int socket, const void *data, size_t size, int flags, const struct sockaddr *to, socklen_t tolen)
{
struct at_socket *sock = RT_NULL;
int len, result = 0;
int len = 0, result = 0;
if (data == RT_NULL || size == 0)
{