Merge pull request #1929 from taosdata/feature/2.0tsdb

fix valgrind unitialized warning
This commit is contained in:
Shengliang Guan 2020-05-15 17:58:12 +08:00 committed by GitHub
commit d2b7470855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -701,6 +701,8 @@ static int tsdbWriteBlockToFile(SRWHelper *pHelper, SFile *pFile, SDataCols *pDa
continue;
}
memset(pCompCol, 0, sizeof(*pCompCol));
pCompCol->colId = pDataCol->colId;
pCompCol->type = pDataCol->type;
if (tDataTypeDesc[pDataCol->type].getStatisFunc) {