fix: c is uninitialized for empty btree

This commit is contained in:
Minglei Jin 2022-09-13 14:42:51 +08:00
parent 7ce9876230
commit d9ce8e3fcd
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ int metaAlterSTable(SMeta *pMeta, int64_t version, SVCreateStbReq *pReq) {
int64_t oversion;
SDecoder dc = {0};
int32_t ret;
int32_t c;
int32_t c = -2;
tdbTbcOpen(pMeta->pUidIdx, &pUidIdxc, &pMeta->txn);
ret = tdbTbcMoveTo(pUidIdxc, &pReq->suid, sizeof(tb_uid_t), &c);