From: Peter van Dijk Date: Mon, 8 Oct 2012 10:03:27 +0000 (+0000) Subject: fix uninitialized variable, speeding up nsec3dig for non-NSEC3 situations a lot ... X-Git-Tag: auth-3.2-rc1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59c892feaa9be8721f2b8f439a38c07f93e882b0;p=thirdparty%2Fpdns.git fix uninitialized variable, speeding up nsec3dig for non-NSEC3 situations a lot (Kees Monshouwer) git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2784 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/nsec3dig.cc b/pdns/nsec3dig.cc index 853ca0cd65..83efa677d1 100644 --- a/pdns/nsec3dig.cc +++ b/pdns/nsec3dig.cc @@ -95,7 +95,7 @@ try set names; nsec3set nsec3s; string nsec3salt; - int nsec3iters; + int nsec3iters = 0; for(MOADNSParser::answers_t::const_iterator i=mdp.d_answers.begin(); i!=mdp.d_answers.end(); ++i) { if(i->first.d_type == QType::NSEC3) {