[systemd-commits] src/resolve

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Mon Aug 11 19:43:18 PDT 2014


 src/resolve/resolved-dns-zone.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bf1594f54ea4b49eee95a16796ec11c55314b2a4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Tue Aug 12 04:42:33 2014 +0200

    resolved: initialize counter
    
    introduced in: a407657425a3e47fd2b559cd3bc800f791303f63

diff --git a/src/resolve/resolved-dns-zone.c b/src/resolve/resolved-dns-zone.c
index 370ecef..b53e957 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);
 



More information about the systemd-commits mailing list