From 79dbf09131ccc3d19e1bd238cbbe9857d91091e0 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 24 Jan 2025 15:55:17 +0800 Subject: [PATCH] fix:[TD-33606]coder is uninilized if error happens in middle --- source/client/src/clientRawBlockWrite.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/client/src/clientRawBlockWrite.c b/source/client/src/clientRawBlockWrite.c index c200d38a56..4ff50692b7 100644 --- a/source/client/src/clientRawBlockWrite.c +++ b/source/client/src/clientRawBlockWrite.c @@ -383,7 +383,7 @@ static void processCreateStb(SMqMetaRsp* metaRsp, cJSON** pJson) { return; } SVCreateStbReq req = {0}; - SDecoder coder; + SDecoder coder = {0}; uDebug("create stable data:%p", metaRsp); // decode and process req @@ -1020,7 +1020,7 @@ static int32_t taosCreateStb(TAOS* taos, void* meta, uint32_t metaLen) { return TSDB_CODE_INVALID_PARA; } SVCreateStbReq req = {0}; - SDecoder coder; + SDecoder coder = {0}; SMCreateStbReq pReq = {0}; int32_t code = TSDB_CODE_SUCCESS; SRequestObj* pRequest = NULL; @@ -2327,7 +2327,7 @@ static void processBatchMetaToJson(SMqBatchMetaRsp* pMsgRsp, char** string) { uError("invalid parameter in %s", __func__); return; } - SDecoder coder; + SDecoder coder = {0}; SMqBatchMetaRsp rsp = {0}; int32_t code = 0; cJSON* pJson = NULL;