fix hb crash
This commit is contained in:
parent
306cd7bef3
commit
6a6bab9e98
|
@ -270,7 +270,7 @@ int32_t tDeserializeSClientHbBatchRsp(void *buf, int32_t bufLen, SClientHbBatchR
|
|||
int32_t rspNum = 0;
|
||||
if (tDecodeI32(&decoder, &rspNum) < 0) return -1;
|
||||
if (pBatchRsp->rsps == NULL) {
|
||||
pBatchRsp->rsps = taosArrayInit(rspNum, sizeof(SClientHbReq));
|
||||
pBatchRsp->rsps = taosArrayInit(rspNum, sizeof(SClientHbRsp));
|
||||
}
|
||||
for (int32_t i = 0; i < rspNum; i++) {
|
||||
SClientHbRsp rsp = {0};
|
||||
|
|
Loading…
Reference in New Issue