From 14127825c0b28f8ad57500e3aecc5b89b6b91de6 Mon Sep 17 00:00:00 2001 From: Song Guo Date: Sat, 15 May 2021 08:42:08 +0800 Subject: [PATCH] [nit] NodeCredential should be initialized with nullptr (#6843) --- src/credentials/CHIPOperationalCredentials.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/credentials/CHIPOperationalCredentials.h b/src/credentials/CHIPOperationalCredentials.h index b0e9333b1b3804..13837bb8d2303b 100644 --- a/src/credentials/CHIPOperationalCredentials.h +++ b/src/credentials/CHIPOperationalCredentials.h @@ -41,8 +41,8 @@ using namespace Crypto; struct NodeCredential { - uint8_t * mCredential; - uint16_t mLen; + uint8_t * mCredential = nullptr; + uint16_t mLen = 0; }; struct NodeCredentialMap