]> granicus.if.org Git - pdns/commitdiff
Initialize DTime members
authorAki Tuomi <cmouse@desteem.org>
Tue, 29 Sep 2015 19:07:52 +0000 (22:07 +0300)
committerAki Tuomi <cmouse@desteem.org>
Sat, 3 Oct 2015 22:01:12 +0000 (01:01 +0300)
fix cid#1030029

pdns/logger.cc
pdns/misc.cc

index 3da8de0c6a0e31caf222af4fb63b99af2a306980..d4fcdcd7a9767cbbceacbff7c73a6096c79585c5 100644 (file)
@@ -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;
 
index 065cbd6c964db280dd0dbdd165ca56304c77d286..16dcab4bf9e166e06ed46132c434ca874cc438a6 100644 (file)
@@ -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)