fixed uninitialized member in ctor

This commit is contained in:
Guenter Obiltschnig
2016-09-26 17:48:09 +02:00
parent e07dbdc718
commit c716239c22

View File

@@ -226,7 +226,8 @@ NetworkInterfaceImpl::NetworkInterfaceImpl(const std::string& name,
_pointToPoint(false),
_up(false),
_running(false),
_mtu(0)
_mtu(0),
_type(NetworkInterface::NI_TYPE_OTHER)
{
_addressList.push_back(AddressTuple(address, subnetMask, broadcastAddress));
setPhyParams();