summaryrefslogtreecommitdiffstats
path: root/src/resolve
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-12 04:42:33 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-12 04:42:33 +0200
commitbf1594f54ea4b49eee95a16796ec11c55314b2a4 (patch)
treeb2cf615f369d487b7bc5c93d5111f19ed415093d /src/resolve
parentnetworkd: fix build (diff)
downloadsystemd-bf1594f54ea4b49eee95a16796ec11c55314b2a4.tar.xz
systemd-bf1594f54ea4b49eee95a16796ec11c55314b2a4.zip
resolved: initialize counter
introduced in: a407657425a3e47fd2b559cd3bc800f791303f63
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-zone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-zone.c b/src/resolve/resolved-dns-zone.c
index 370ecefd79..b53e957d76 100644
--- a/src/resolve/resolved-dns-zone.c
+++ b/src/resolve/resolved-dns-zone.c
@@ -580,7 +580,7 @@ static int dns_zone_item_verify(DnsZoneItem *i) {
int dns_zone_check_conflicts(DnsZone *zone, DnsResourceRecord *rr) {
DnsZoneItem *i, *first;
- int c;
+ int c = 0;
assert(zone);
assert(rr);
@@ -614,7 +614,7 @@ int dns_zone_check_conflicts(DnsZone *zone, DnsResourceRecord *rr) {
int dns_zone_verify_conflicts(DnsZone *zone, DnsResourceKey *key) {
DnsZoneItem *i, *first;
- int c;
+ int c = 0;
assert(zone);