From 9d2b9f645ab5c9816bc4a3cd9b206a6ab2779ef8 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 19 Oct 2017 11:14:00 +0200 Subject: [PATCH] auth: Make sure hadFileDirective is initialized in BindDomainInfo It should be initialized after BindParser::commit() has been called, but let's make sure it still is if this function is not called. Reported by Coverity. --- pdns/bindparserclasses.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/bindparserclasses.hh b/pdns/bindparserclasses.hh index b8a3caa23..33f7c6187 100644 --- a/pdns/bindparserclasses.hh +++ b/pdns/bindparserclasses.hh @@ -33,7 +33,7 @@ class BindDomainInfo { public: - BindDomainInfo() : d_dev(0), d_ino(0) + BindDomainInfo() : hadFileDirective(false), d_dev(0), d_ino(0) {} void clear() -- 2.50.0