From 4bb11c92ba67e309d9dd92cfa8a72258a60fc50a Mon Sep 17 00:00:00 2001 From: Andrew Beltrano Date: Thu, 20 Jun 2024 15:59:07 +0000 Subject: [PATCH] Initialize all struct members explicitly. --- .../remote/service/NetRemoteServerConfiguration.hxx | 4 ++-- .../net/wifi/Ieee80211AccessPointCapabilities.hxx | 10 +++++----- .../wpa-controller/include/Wpa/ProtocolHostapd.hxx | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/common/server/include/microsoft/net/remote/service/NetRemoteServerConfiguration.hxx b/src/common/server/include/microsoft/net/remote/service/NetRemoteServerConfiguration.hxx index a8c4f7a9..79f4ef33 100644 --- a/src/common/server/include/microsoft/net/remote/service/NetRemoteServerConfiguration.hxx +++ b/src/common/server/include/microsoft/net/remote/service/NetRemoteServerConfiguration.hxx @@ -67,12 +67,12 @@ struct NetRemoteServerConfiguration /** * @brief Object to use when performing network operations. */ - std::shared_ptr NetworkManager; + std::shared_ptr NetworkManager{}; /** * @brief Factory to use to create the discovery service. */ - std::shared_ptr DiscoveryServiceFactory; + std::shared_ptr DiscoveryServiceFactory{}; }; } // namespace Microsoft::Net::Remote::Service diff --git a/src/common/wifi/core/include/microsoft/net/wifi/Ieee80211AccessPointCapabilities.hxx b/src/common/wifi/core/include/microsoft/net/wifi/Ieee80211AccessPointCapabilities.hxx index 015386f7..e9e54c29 100644 --- a/src/common/wifi/core/include/microsoft/net/wifi/Ieee80211AccessPointCapabilities.hxx +++ b/src/common/wifi/core/include/microsoft/net/wifi/Ieee80211AccessPointCapabilities.hxx @@ -14,11 +14,11 @@ namespace Microsoft::Net::Wifi */ struct Ieee80211AccessPointCapabilities { - std::vector SecurityProtocols; - std::vector PhyTypes; - std::vector FrequencyBands; - std::vector AkmSuites; - std::vector CipherSuites; + std::vector SecurityProtocols{}; + std::vector PhyTypes{}; + std::vector FrequencyBands{}; + std::vector AkmSuites{}; + std::vector CipherSuites{}; /** * @brief Get a string representation of the capabilities. diff --git a/src/linux/wpa-controller/include/Wpa/ProtocolHostapd.hxx b/src/linux/wpa-controller/include/Wpa/ProtocolHostapd.hxx index e1bed2d6..bbe2760d 100644 --- a/src/linux/wpa-controller/include/Wpa/ProtocolHostapd.hxx +++ b/src/linux/wpa-controller/include/Wpa/ProtocolHostapd.hxx @@ -929,9 +929,9 @@ static constexpr uint16_t RadiusAccountingPortDefault = 1813; struct RadiusEndpointConfiguration { RadiusEndpointType Type{ RadiusEndpointType::Unknown }; - std::string Address; - std::optional Port; - std::string SharedSecret; + std::string Address{}; + std::optional Port{}; + std::string SharedSecret{}; }; /**