]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Initialize rcode_ to avoid cppcheck warning
authorMukund Sivaraman <muks@isc.org>
Wed, 24 Jul 2013 05:58:56 +0000 (11:28 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 24 Jul 2013 05:58:56 +0000 (11:28 +0530)
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc

index 93b0a4f02afd6bb0656f0741d9ae289f3e102179..2cdf90088260d418cd8dbd6c380c8b76f9ca8215 100644 (file)
@@ -193,7 +193,9 @@ public:
     ///
     /// Initializes common objects used in many tests.
     /// Also sets up initial configuration in CfgMgr.
-    Dhcpv4SrvTest() {
+    Dhcpv4SrvTest() :
+        rcode_(0)
+    {
         subnet_ = Subnet4Ptr(new Subnet4(IOAddress("192.0.2.0"), 24, 1000,
                                          2000, 3000));
         pool_ = Pool4Ptr(new Pool4(IOAddress("192.0.2.100"), IOAddress("192.0.2.110")));