From: Aki Tuomi Date: Tue, 29 Sep 2015 17:44:12 +0000 (+0300) Subject: Initialize d_templatecounter,stop and step X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~12^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80ad238a376c91e206569f2413689b94fabd6248;p=thirdparty%2Fpdns.git Initialize d_templatecounter,stop and step fix cid#1311584 --- diff --git a/pdns/zoneparser-tng.cc b/pdns/zoneparser-tng.cc index e5cd013736..4867afe28c 100644 --- a/pdns/zoneparser-tng.cc +++ b/pdns/zoneparser-tng.cc @@ -38,14 +38,15 @@ ZoneParserTNG::ZoneParserTNG(const string& fname, const DNSName& zname, const string& reldir) : d_reldir(reldir), d_zonename(zname), d_defaultttl(3600), - d_havedollarttl(false) -{ + d_templatecounter(0), d_templatestop(0), + d_templatestep(0), d_havedollarttl(false){ stackFile(fname); } ZoneParserTNG::ZoneParserTNG(const vector zonedata, const DNSName& zname): d_zonename(zname), d_defaultttl(3600), - d_havedollarttl(false) + d_templatecounter(0), d_templatestop(0), + d_templatestep(0), d_havedollarttl(false) { d_zonedata = zonedata; d_zonedataline = d_zonedata.begin();