Update at_socket.c

修复sock未初始化使用的问题
This commit is contained in:
HubretXie authored and GitHub committed 2019-04-02 16:10:54 +08:00
1 parent 24c9e8cb3f
commit 5066ba6a0e
1 file changed
+1 -1
+1 -1
View File
@@ -737,7 +737,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;
struct at_socket *sock = RT_NULL;
int len, result = 0;
if (at_dev_ops == RT_NULL)