diff --git a/src/mnode/src/mnodeUser.c b/src/mnode/src/mnodeUser.c index 2da087fe88ea557aa1e053d61b3cbb7743838e03..b4c86608caf012c0a7727630fc1847b4b9083456 100644 --- a/src/mnode/src/mnodeUser.c +++ b/src/mnode/src/mnodeUser.c @@ -100,8 +100,8 @@ static int32_t mnodeUserActionDecode(SSdbRow *pRow) { // check old format if(tsUserUpdateSizeOld == 0) { - //int32_t nUpdateSizeOld = (int32_t)((int8_t *)old.updateEnd - (int8_t *)&old); - tsUserUpdateSizeOld = (int32_t)((SUserObjOld*)0)->updateEnd; + SUserObjOld old; + tsUserUpdateSizeOld = (int32_t)((int8_t *)old.updateEnd - (int8_t *)&old); } if (pRow->rowSize == tsUserUpdateSizeOld) {