@@ -250,7 +250,7 @@ class PairingCommand : public CHIPCommand,
250
250
const PairingNetworkType mNetworkType ;
251
251
const chip::Dnssd::DiscoveryFilterType mFilterType ;
252
252
Command::AddressWithInterface mRemoteAddr ;
253
- NodeId mNodeId ;
253
+ NodeId mNodeId = chip:: kUndefinedNodeId ;
254
254
chip::Optional<uint16_t > mTimeout ;
255
255
chip::Optional<bool > mDiscoverOnce ;
256
256
chip::Optional<bool > mUseOnlyOnNetworkDiscovery ;
@@ -272,18 +272,18 @@ class PairingCommand : public CHIPCommand,
272
272
TypedComplexArgument<chip::app::DataModel::List<chip::app::Clusters::TimeSynchronization::Structs::DSTOffsetStruct::Type>>
273
273
mComplex_DSTOffsets ;
274
274
275
- uint16_t mRemotePort ;
276
- uint16_t mDiscriminator ;
277
- uint32_t mSetupPINCode ;
278
- uint16_t mIndex ;
275
+ uint16_t mRemotePort = 0 ;
276
+ uint16_t mDiscriminator = 0 ;
277
+ uint32_t mSetupPINCode = 0 ;
278
+ uint16_t mIndex = 0 ;
279
279
chip::ByteSpan mOperationalDataset ;
280
280
chip::ByteSpan mSSID ;
281
281
chip::ByteSpan mPassword ;
282
- char * mOnboardingPayload ;
283
- uint64_t mDiscoveryFilterCode ;
284
- char * mDiscoveryFilterInstanceName ;
282
+ char * mOnboardingPayload = nullptr ;
283
+ uint64_t mDiscoveryFilterCode = 0 ;
284
+ char * mDiscoveryFilterInstanceName = nullptr ;
285
285
286
- bool mDeviceIsICD ;
286
+ bool mDeviceIsICD = false ;
287
287
uint8_t mRandomGeneratedICDSymmetricKey [chip::Crypto::kAES_CCM128_Key_Length ];
288
288
289
289
// For unpair
0 commit comments