From 333e72fa08d5396856c705bbc88147cf069049c0 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 25 Nov 2022 17:14:43 +0800 Subject: [PATCH] fix:covrity error --- source/client/src/clientMsgHandler.c | 2 -- source/common/src/tname.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/client/src/clientMsgHandler.c b/source/client/src/clientMsgHandler.c index 78e2bc9d2d..b228deb8ed 100644 --- a/source/client/src/clientMsgHandler.c +++ b/source/client/src/clientMsgHandler.c @@ -48,8 +48,6 @@ int32_t genericRspCallback(void* param, SDataBuf* pMsg, int32_t code) { int32_t processConnectRsp(void* param, SDataBuf* pMsg, int32_t code) { SRequestObj *pRequest = acquireRequest(*(int64_t*)param); if (NULL == pRequest) { - setErrno(pRequest, TSDB_CODE_TSC_DISCONNECTED); - tsem_post(&pRequest->body.rspSem); goto End; } diff --git a/source/common/src/tname.c b/source/common/src/tname.c index 4d83b6e3d8..0d47ef1e7f 100644 --- a/source/common/src/tname.c +++ b/source/common/src/tname.c @@ -316,6 +316,7 @@ static int compareKv(const void* p1, const void* p2) { void buildChildTableName(RandTableName* rName) { SStringBuilder sb = {0}; taosStringBuilderAppendStringLen(&sb, rName->stbFullName, rName->stbFullNameLen); + if(sb.buf == NULL) return; taosArraySort(rName->tags, compareKv); for (int j = 0; j < taosArrayGetSize(rName->tags); ++j) { taosStringBuilderAppendChar(&sb, ','); -- GitLab