ReFix Coverity Scan CID 340288 (Using uninitialized value slen when calling getsockname.)

This commit is contained in:
SAWADA Kentaro
2019-05-29 14:54:39 +09:00
parent 69f68d13f5
commit a8bd28cc8a
+1 -1
View File
@@ -230,7 +230,7 @@ socket_link_t *new_link_udp_client(const char *server, int port){
struct sockaddr_in si_other;
int s;
socklen_t slen = 0;
socklen_t slen = sizeof(si_other);
if ( (s=socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1){
goto error;