chiark / gitweb /
fix gcc warnings about uninitialized variables
[elogind.git] / src / resolve / resolved-dns-transaction.c
index 74b0634142be5fbd9fd141969402c27ac44617be..bc1a90db1bb22ebdabf1316e71df6502743237b3 100644 (file)
@@ -252,7 +252,7 @@ static int dns_transaction_open_tcp(DnsTransaction *t) {
                         fd = dns_scope_tcp_socket(t->scope, t->received->family, &t->received->sender, t->received->sender_port);
                 else {
                         union in_addr_union address;
-                        int family;
+                        int family = AF_UNSPEC;
 
                         /* Otherwise, try to talk to the owner of a
                          * the IP address, in case this is a reverse