]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1211] Removed compilation warning in lease_cmds.cc
authorTomek Mrugalski <tomek@isc.org>
Mon, 15 Jun 2020 10:56:39 +0000 (12:56 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 15 Jun 2020 15:43:16 +0000 (15:43 +0000)
src/hooks/dhcp/lease_cmds/lease_cmds.cc

index 50c056aa0c65c1f192b6157aace37c3ec9b7102a..7b2d58e5d3fd6befb3123a566002fbc54cadebfd 100644 (file)
@@ -1478,7 +1478,7 @@ LeaseCmdsImpl::lease4UpdateHandler(CalloutHandle& handle) {
         // The parser does sanity checks (if the address is in scope, if
         // subnet-id is valid, etc)
         lease4 = parser.parse(config, cmd_args_, force_create);
-        bool added;
+        bool added = false;
         if (MultiThreadingMgr::instance().getMode() &&
             !MultiThreadingMgr::instance().isInCriticalSection()) {
             bool use_cs = false;