fix rtl_tcp error on windows when hints not initialized to 0

This commit is contained in:
rtlsdrblog 2023-08-31 17:37:22 +12:00
parent 8c59802348
commit 234877f1b7

View File

@ -386,7 +386,7 @@ int main(int argc, char **argv)
struct sockaddr_storage local, remote;
struct addrinfo *ai;
struct addrinfo *aiHead;
struct addrinfo hints;
struct addrinfo hints = { 0 };
char hostinfo[NI_MAXHOST];
char portinfo[NI_MAXSERV];
char remhostinfo[NI_MAXHOST];