Skip to content

Commit 7249c56

Browse files
[Raspi] Fix crash on RP4 when add-local-bridge (project-chip#35468)
* [Raspi] Fix crash on RP4 when add-local-bridge * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 9edb3ad commit 7249c56

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/fabric-admin/commands/pairing/PairingCommand.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class PairingCommand : public CHIPCommand,
250250
const PairingNetworkType mNetworkType;
251251
const chip::Dnssd::DiscoveryFilterType mFilterType;
252252
Command::AddressWithInterface mRemoteAddr;
253-
NodeId mNodeId;
253+
NodeId mNodeId = chip::kUndefinedNodeId;
254254
chip::Optional<uint16_t> mTimeout;
255255
chip::Optional<bool> mDiscoverOnce;
256256
chip::Optional<bool> mUseOnlyOnNetworkDiscovery;
@@ -272,18 +272,18 @@ class PairingCommand : public CHIPCommand,
272272
TypedComplexArgument<chip::app::DataModel::List<chip::app::Clusters::TimeSynchronization::Structs::DSTOffsetStruct::Type>>
273273
mComplex_DSTOffsets;
274274

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;
279279
chip::ByteSpan mOperationalDataset;
280280
chip::ByteSpan mSSID;
281281
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;
285285

286-
bool mDeviceIsICD;
286+
bool mDeviceIsICD = false;
287287
uint8_t mRandomGeneratedICDSymmetricKey[chip::Crypto::kAES_CCM128_Key_Length];
288288

289289
// For unpair

0 commit comments

Comments
 (0)