Parcourir la source

[2952] LeaseMgr pointer is now initialized properly.

Tomek Mrugalski il y a 11 ans
Parent
commit
c276e3c22b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/lib/dhcpsrv/tests/test_utils.cc

+ 2 - 1
src/lib/dhcpsrv/tests/test_utils.cc

@@ -87,7 +87,8 @@ detailCompareLease(const Lease6Ptr& first, const Lease6Ptr& second) {
 }
 
 
-GenericLeaseMgrTest::GenericLeaseMgrTest() {
+GenericLeaseMgrTest::GenericLeaseMgrTest()
+    :lmptr_(NULL) {
     // Initialize address strings and IOAddresses
     for (int i = 0; ADDRESS4[i] != NULL; ++i) {
         string addr(ADDRESS4[i]);