Fix Coverity Scan CID 340273

This commit is contained in:
SAWADA Kentaro
2019-05-28 19:31:19 +09:00
parent 3a92f18eca
commit 5fe7940ef4
+1 -1
View File
@@ -402,7 +402,7 @@ static int socket_udp_receive(int socket_fd, void *buf, int size)
LOG_D(PROTO_AGENT,"UDP RECEIVE\n");
struct sockaddr_in client;
socklen_t slen;
socklen_t slen = 0;
int l;
l = recvfrom(socket_fd, buf, size, 0, (struct sockaddr *) &client, &slen);