Skip to content

Commit

Permalink
Merge pull request #291 from microsoft/fixmissingfieldinits
Browse files Browse the repository at this point in the history
Initialize all struct members explicitly.
  • Loading branch information
abeltrano authored Jun 20, 2024
2 parents 4cf8055 + 4bb11c9 commit ae379ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ struct NetRemoteServerConfiguration
/**
* @brief Object to use when performing network operations.
*/
std::shared_ptr<Microsoft::Net::NetworkManager> NetworkManager;
std::shared_ptr<Microsoft::Net::NetworkManager> NetworkManager{};

/**
* @brief Factory to use to create the discovery service.
*/
std::shared_ptr<INetRemoteDiscoveryServiceFactory> DiscoveryServiceFactory;
std::shared_ptr<INetRemoteDiscoveryServiceFactory> DiscoveryServiceFactory{};
};

} // namespace Microsoft::Net::Remote::Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ namespace Microsoft::Net::Wifi
*/
struct Ieee80211AccessPointCapabilities
{
std::vector<Ieee80211SecurityProtocol> SecurityProtocols;
std::vector<Ieee80211PhyType> PhyTypes;
std::vector<Ieee80211FrequencyBand> FrequencyBands;
std::vector<Ieee80211AkmSuite> AkmSuites;
std::vector<Ieee80211CipherSuite> CipherSuites;
std::vector<Ieee80211SecurityProtocol> SecurityProtocols{};
std::vector<Ieee80211PhyType> PhyTypes{};
std::vector<Ieee80211FrequencyBand> FrequencyBands{};
std::vector<Ieee80211AkmSuite> AkmSuites{};
std::vector<Ieee80211CipherSuite> CipherSuites{};

/**
* @brief Get a string representation of the capabilities.
Expand Down
6 changes: 3 additions & 3 deletions src/linux/wpa-controller/include/Wpa/ProtocolHostapd.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,9 @@ static constexpr uint16_t RadiusAccountingPortDefault = 1813;
struct RadiusEndpointConfiguration
{
RadiusEndpointType Type{ RadiusEndpointType::Unknown };
std::string Address;
std::optional<uint16_t> Port;
std::string SharedSecret;
std::string Address{};
std::optional<uint16_t> Port{};
std::string SharedSecret{};
};

/**
Expand Down

0 comments on commit ae379ec

Please sign in to comment.