aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorrtlsdrblog <rtlsdrblog@gmail.com>2023-08-31 17:37:22 +1200
committerSteve Markgraf <steve@steve-m.de>2023-11-02 12:09:46 +0100
commit178267c3990bd780b14639d66423a4952df6f8bc (patch)
tree7329020a0c78c30bdd743444d05fe2fa7b4756c3 /src
parent6ca9082aec057cb01bad911cc57dd78d338beefd (diff)
fix rtl_tcp error on windows when hints not initialized to 0
Diffstat (limited to 'src')
-rw-r--r--src/rtl_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtl_tcp.c b/src/rtl_tcp.c
index 5595729..3ed0cae 100644
--- a/src/rtl_tcp.c
+++ b/src/rtl_tcp.c
@@ -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];