]> granicus.if.org Git - pdns/commitdiff
Avoid warning
authorRuben d'Arco <cyclops@prof-x.net>
Sun, 19 May 2013 09:49:27 +0000 (11:49 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:29:37 +0000 (17:29 +0200)
rfc2136handler.cc: In member function ‘uint16_t PacketHandler::performUpdate(const string&, const DNSRecord*, DomainInfo*, bool, bool*, bool*, NSEC3PARAMRecordContent*, bool*)’:
rfc2136handler.cc:475:14: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]

pdns/rfc2136handler.cc

index d6e10a4fa26851316e8bf8515030d8721011c10f..2ae5e4fcb496d702fe32fc85c41dcd3f0410dead 100644 (file)
@@ -472,10 +472,10 @@ uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord *
             else
               foundEnt = true;
           }
-          if (!foundRealRR)
+          if (!foundRealRR) {
             if (foundEnt) // only delete the ENT if we actually found one.
               delnonterm.insert(shorter);
-          else
+          else
             break;
         }
       }