From 92b9746787ed2aca9710d67baad6c1aee5483a29 Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Tue, 9 Oct 2018 00:24:11 +0800 Subject: [PATCH] [cli] fix initializing coap secure response (#3125) --- src/cli/cli_coap_secure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cli_coap_secure.cpp b/src/cli/cli_coap_secure.cpp index 278a7172f..558b04723 100644 --- a/src/cli/cli_coap_secure.cpp +++ b/src/cli/cli_coap_secure.cpp @@ -366,7 +366,7 @@ void CoapsSecure::HandleServerResponse(otCoapHeader *aHeader, otMessage *aMessag { otError error = OT_ERROR_NONE; otCoapHeader responseHeader; - otMessage * responseMessage; + otMessage * responseMessage = NULL; otCoapCode responseCode = OT_COAP_CODE_EMPTY; char responseContent[] = "helloWorld";