diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index 547030a431e36d187ca6eac9492ed9f09a7ba4c4..8407a0519a5595b750e0fd45cc82dcd9d1f6b5b1 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -1290,7 +1290,7 @@ static void *tsdbDecodeTable(void *buf, STable **pRTable) { buf = taosDecodeFixedU64(buf, &TABLE_SUID(pTable)); buf = tdDecodeKVRow(buf, &(pTable->tagVal)); } else { - uint32_t nSchemas; + uint32_t nSchemas = 0; buf = taosDecodeFixedU8(buf, (uint8_t *)&nSchemas); if(nSchemas == 0) { buf = taosDecodeFixedU32(buf, &nSchemas);