fix(query): add memset after malloc memory.

This commit is contained in:
Haojun Liao 2022-11-04 09:09:37 +08:00
parent 869b49158d
commit e7d58625b9
1 changed files with 1 additions and 1 deletions

View File

@ -1182,7 +1182,7 @@ static int32_t doEnsureCapacity(SColumnInfoData* pColumn, const SDataBlockInfo*
return TSDB_CODE_OUT_OF_MEMORY;
}
// memset(tmp + pColumn->info.bytes * existedRows, 0, pColumn->info.bytes * (numOfRows - existedRows));
memset(tmp + pColumn->info.bytes * existedRows, 0, pColumn->info.bytes * (numOfRows - existedRows));
pColumn->pData = tmp;
}