From 867df3b5d9b12edadb81102a73d2c6a851ab88f2 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Fri, 28 Jan 2022 14:47:47 +0800 Subject: [PATCH] back compatibility fix for .current --- src/tsdb/src/tsdbFS.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbFS.c b/src/tsdb/src/tsdbFS.c index 1ef516b305..8929ef6f0f 100644 --- a/src/tsdb/src/tsdbFS.c +++ b/src/tsdb/src/tsdbFS.c @@ -91,8 +91,8 @@ static int tsdbEncodeDFileSetArray(void **buf, SArray *pArray) { } static int tsdbDecodeDFileSetArray(void **originBuf, void *buf, SArray *pArray, SFSHeader *pSFSHeader) { - uint64_t nset; - SDFileSet dset; + uint64_t nset = 0; + SDFileSet dset = {0}; dset.ver = TSDB_FSET_VER_0; // default value taosArrayClear(pArray); -- GitLab