Skip to content

Commit c7382c1

Browse files
authored
Update at_socket.c
1 parent fa46d6a commit c7382c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/net/at/at_socket/at_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ int at_recv(int s, void *mem, size_t len, int flags)
855855
int at_sendto(int socket, const void *data, size_t size, int flags, const struct sockaddr *to, socklen_t tolen)
856856
{
857857
struct at_socket *sock = RT_NULL;
858-
int len, result = 0;
858+
int len = 0, result = 0;
859859

860860
if (data == RT_NULL || size == 0)
861861
{

0 commit comments

Comments
 (0)