From e3ded1cf751457fd347dc09700f651c783cade0b Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Wed, 4 Sep 2024 13:41:32 +0800 Subject: [PATCH] fix: compile error --- source/common/src/tmsg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 3bc4473698..8728743cd0 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -5559,6 +5559,7 @@ int32_t tSerializeSSTbHbRsp(void *buf, int32_t bufLen, SSTbHbRsp *pRsp) { SEncoder encoder = {0}; int32_t code = 0; int32_t lino; + int32_t tlen; tEncoderInit(&encoder, buf, bufLen); @@ -5877,8 +5878,8 @@ int32_t tSerializeSCMCreateTopicReq(void *buf, int32_t bufLen, const SCMCreateTo TAOS_CHECK_EXIT(tEncodeI32(&encoder, 0)); } } - iTAOS_CHECK_EXIT(tEncodeI32(&encoder, strlen(pReq->sql))); - iTAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->sql)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, strlen(pReq->sql))); + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->sql)); tEndEncode(&encoder);