forked from sdr/rtl-sdr
1
0
Fork 0

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 committed by Steve Markgraf
parent 6ca9082aec
commit 178267c399
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,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];