]> granicus.if.org Git - pdns/commitdiff
auth: silence 'mastercommunicator.cc:223:104 warning: ‘id’ may be used uninitialized...
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 10 Jul 2019 10:16:31 +0000 (12:16 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 20 Sep 2019 12:44:10 +0000 (14:44 +0200)
id was set in getOne()

pdns/mastercommunicator.cc

index 03a25eafee4023f37492adba9dc7908f4f45fe1a..abd496fe7a895f6fc6bf367807c7c30c38f2cff9 100644 (file)
@@ -204,7 +204,7 @@ time_t CommunicatorClass::doNotifications(PacketHandler *P)
   // send out possible new notifications
   DNSName domain;
   string ip;
-  uint16_t id;
+  uint16_t id=0;
 
   bool purged;
   while(d_nq.getOne(domain, ip, &id, purged)) {