summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-10-06 17:44:51 +0200
committerLennart Poettering <lennart@poettering.net>2016-10-06 19:04:10 +0200
commit7429b2eb8308f3a2bf8c28d555fcdf5e961e65f0 (patch)
treeeebcba7b9b273e20998371c2d84fcb41dc65a6f5 /src/resolve
parent2d6fce8d7c397fe915230b728cb92aa749245e43 (diff)
tree-wide: drop some misleading compiler warnings
gcc at some optimization levels thinks thes variables were used without initialization. it's wrong, but let's make the message go anyway.
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c
index 5304c6e6e6..337a8c473f 100644
--- a/src/resolve/resolved-dns-packet.c
+++ b/src/resolve/resolved-dns-packet.c
@@ -2143,7 +2143,7 @@ int dns_packet_extract(DnsPacket *p) {
for (i = 0; i < n; i++) {
_cleanup_(dns_resource_record_unrefp) DnsResourceRecord *rr = NULL;
- bool cache_flush;
+ bool cache_flush = false;
r = dns_packet_read_rr(p, &rr, &cache_flush, NULL);
if (r < 0)