fix: set values before add it to array

This commit is contained in:
slzhou 2022-10-25 14:16:31 +08:00
parent 40fae0842f
commit bc0f120fb0
1 changed files with 1 additions and 1 deletions

View File

@ -1714,11 +1714,11 @@ void* tDecodeDataBlock(const void* buf, SSDataBlock* pBlock) {
int32_t len = 0;
buf = taosDecodeFixedI32(buf, &len);
buf = taosDecodeBinary(buf, (void**)&data.pData, len);
taosArrayPush(pBlock->pDataBlock, &data);
if (IS_VAR_DATA_TYPE(data.info.type)) {
data.varmeta.length = len;
data.varmeta.allocLen = len;
}
taosArrayPush(pBlock->pDataBlock, &data);
}
return (void*)buf;
}