From 55b6512dd37b3a47799ee27b4982a5d1fdc344ce Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 29 Sep 2015 22:07:52 +0300 Subject: [PATCH] Initialize DTime members fix cid#1030029 --- pdns/logger.cc | 1 + pdns/misc.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/pdns/logger.cc b/pdns/logger.cc index 3da8de0c6..d4fcdcd7a 100644 --- a/pdns/logger.cc +++ b/pdns/logger.cc @@ -100,6 +100,7 @@ Logger::Logger(const string &n, int facility) opened=false; flags=LOG_PID|LOG_NDELAY; d_facility=facility; + d_loglevel=Logger::None; consoleUrgency=Error; name=n; diff --git a/pdns/misc.cc b/pdns/misc.cc index 065cbd6c9..16dcab4bf 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -374,6 +374,7 @@ string humanDuration(time_t passed) DTime::DTime() { // set(); // saves lots of gettimeofday calls + d_set.tv_sec=d_set.tv_usec=0; } DTime::DTime(const DTime &dt) -- 2.40.0