fix: compile error

This commit is contained in:
Hongze Cheng 2024-09-04 13:41:32 +08:00
parent 19b44b2984
commit e3ded1cf75
1 changed files with 3 additions and 2 deletions

View File

@ -5559,6 +5559,7 @@ int32_t tSerializeSSTbHbRsp(void *buf, int32_t bufLen, SSTbHbRsp *pRsp) {
SEncoder encoder = {0}; SEncoder encoder = {0};
int32_t code = 0; int32_t code = 0;
int32_t lino; int32_t lino;
int32_t tlen;
tEncoderInit(&encoder, buf, bufLen); tEncoderInit(&encoder, buf, bufLen);
@ -5877,8 +5878,8 @@ int32_t tSerializeSCMCreateTopicReq(void *buf, int32_t bufLen, const SCMCreateTo
TAOS_CHECK_EXIT(tEncodeI32(&encoder, 0)); TAOS_CHECK_EXIT(tEncodeI32(&encoder, 0));
} }
} }
iTAOS_CHECK_EXIT(tEncodeI32(&encoder, strlen(pReq->sql))); TAOS_CHECK_EXIT(tEncodeI32(&encoder, strlen(pReq->sql)));
iTAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->sql)); TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->sql));
tEndEncode(&encoder); tEndEncode(&encoder);