diff --git a/source/dnode/vnode/src/tsdb/tsdbRead.c b/source/dnode/vnode/src/tsdb/tsdbRead.c index bd4f4d1ca82d56442aebcb555b5f2c290f185fc3..558c3f6e59553829b982ee7d63d0fbdc66f89bdf 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbRead.c @@ -853,7 +853,7 @@ _end: static int32_t doLoadBlockIndex(STsdbReader* pReader, SDataFReader* pFileReader, SArray* pIndexList) { int32_t code = 0; - SMapData blockIdxMap; + SMapData blockIdxMap = {0}; tMapDataReset(&blockIdxMap); code = tsdbReadBlockIdx(pFileReader, &blockIdxMap, NULL); @@ -914,7 +914,7 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, uint32_ for(int32_t i = 0; i < numOfTables; ++i) { SBlockIdx* pBlockIdx = taosArrayGet(pIndexList, i); - SMapData mapData; + SMapData mapData = {0}; tMapDataReset(&mapData); tsdbReadBlock(pReader->pFileReader, pBlockIdx, &mapData, NULL); @@ -3638,4 +3638,4 @@ int64_t tsdbGetNumOfRowsInMemTable(STsdbReader* pReader) { // } return rows; -} \ No newline at end of file +}