miniupnpc/receivedata.c: zero src_addr to silence valgrind
This commit is contained in:
parent
8b22c4d7f4
commit
8d5a9d72da
|
@ -81,6 +81,7 @@ receivedata(int socket,
|
|||
}
|
||||
#endif /* !defined(_WIN32) && !defined(__amigaos__) && !defined(__amigaos4__) */
|
||||
#if MINIUPNPC_GET_SRC_ADDR
|
||||
memset(&src_addr, 0, sizeof(src_addr));
|
||||
n = recvfrom(socket, data, length, 0,
|
||||
(struct sockaddr *)&src_addr, &src_addr_len);
|
||||
#else /* MINIUPNPC_GET_SRC_ADDR */
|
||||
|
|
Loading…
Reference in New Issue