From: Francis Dupont Date: Wed, 24 Jun 2015 11:41:20 +0000 (+0200) Subject: [3919] Added some missing initializations X-Git-Tag: trac3911_base~5^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0abfa6ad2e6a81e72bcb3c7fdf6da5acb0296ee7;p=thirdparty%2Fkea.git [3919] Added some missing initializations --- diff --git a/src/lib/dhcpsrv/mysql_lease_mgr.cc b/src/lib/dhcpsrv/mysql_lease_mgr.cc index 63a4cb3972..1296efc0cf 100644 --- a/src/lib/dhcpsrv/mysql_lease_mgr.cc +++ b/src/lib/dhcpsrv/mysql_lease_mgr.cc @@ -308,6 +308,7 @@ public: /// all variables are initialized/set in the methods before they are used. MySqlLease4Exchange() : addr4_(0), hwaddr_length_(0), client_id_length_(0), client_id_null_(MLM_FALSE), + subnet_id_(0), valid_lifetime_(0), fqdn_fwd_(false), fqdn_rev_(false), hostname_length_(0) { memset(hwaddr_buffer_, 0, sizeof(hwaddr_buffer_)); memset(client_id_buffer_, 0, sizeof(client_id_buffer_)); @@ -666,6 +667,8 @@ public: /// The initialization of the variables here is nonly to satisfy cppcheck - /// all variables are initialized/set in the methods before they are used. MySqlLease6Exchange() : addr6_length_(0), duid_length_(0), + iaid_(0), lease_(0), lease_type_(0), prefixlen_(0), + pref_lifetime_(0), subnet_id_(0), valid_lifetime_(0), fqdn_fwd_(false), fqdn_rev_(false), hostname_length_(0), hwaddr_length_(0), hwaddr_null_(MLM_FALSE), hwtype_(0), hwaddr_source_(0) {