From 938c6e4c0546ca65ba7461243dc1a9b13ef9a4d6 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 4 Aug 2022 20:04:34 +0800 Subject: [PATCH] fix: zero cell coder --- source/libs/tdb/src/db/tdbBtree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/tdb/src/db/tdbBtree.c b/source/libs/tdb/src/db/tdbBtree.c index d6d6d950d6..7a44edb12c 100644 --- a/source/libs/tdb/src/db/tdbBtree.c +++ b/source/libs/tdb/src/db/tdbBtree.c @@ -735,7 +735,7 @@ static int tdbBtreeBalanceNonRoot(SBTree *pBt, SPage *pParent, int idx, TXN *pTx int szCell; SBtreeInitPageArg iarg; int iNew, nNewCells; - SCellDecoder cd; + SCellDecoder cd = {0}; iarg.pBt = pBt; iarg.flags = TDB_BTREE_PAGE_GET_FLAGS(pOlds[0]); @@ -1716,7 +1716,7 @@ int tdbBtreeNext(SBTC *pBtc, void **ppKey, int *kLen, void **ppVal, int *vLen) { int tdbBtreePrev(SBTC *pBtc, void **ppKey, int *kLen, void **ppVal, int *vLen) { SCell *pCell; - SCellDecoder cd; + SCellDecoder cd = {0}; void *pKey, *pVal; int ret;