chiark / gitweb /
resolved: initialize counter
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 12 Aug 2014 02:42:33 +0000 (04:42 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 12 Aug 2014 02:42:33 +0000 (04:42 +0200)
introduced in: a407657425a3e47fd2b559cd3bc800f791303f63

src/resolve/resolved-dns-zone.c

index 370ecef..b53e957 100644 (file)
@@ -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);