From 8e5920fe42063aa445bb20a0e092cbfbd3c3ee72 Mon Sep 17 00:00:00 2001 From: Aleksey Volkov Date: Tue, 16 Jul 2019 09:52:30 +0300 Subject: [PATCH] Init pstat->sm to NULL https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/542/commits/732215dde47f1ed69461f874707b38c98b518d08 (cherry-picked from 732215dde47f1ed69461f874707b38c98b518d08) Change-Id: I6efcc7a268fa9027ac1b080ce865ef7cd4020372 Signed-off-by: Aleksey Volkov Signed-off-by: Sudipto Bal --- resource/csdk/security/src/pstatresource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/resource/csdk/security/src/pstatresource.c b/resource/csdk/security/src/pstatresource.c index f9834d1..ceb8949 100644 --- a/resource/csdk/security/src/pstatresource.c +++ b/resource/csdk/security/src/pstatresource.c @@ -282,6 +282,7 @@ static OCStackResult CBORPayloadToPstatBin(const uint8_t *cborPayload, const siz pstat = (OicSecPstat_t *)OICCalloc(1, sizeof(OicSecPstat_t)); VERIFY_NON_NULL(TAG, pstat, ERROR); + pstat->sm = NULL; cborFindResult = cbor_value_map_find_value(&pstatCbor, OIC_JSON_ISOP_NAME, &pstatMap); if (CborNoError == cborFindResult && cbor_value_is_boolean(&pstatMap)) -- 2.7.4