fix: coverity issues

CID: 399518
This commit is contained in:
Ganlin Zhao 2022-10-24 14:16:17 +08:00
parent 1935d349d4
commit 42dfe03e7d
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ double getPercentileImpl(tMemBucket *pMemBucket, int32_t count, double fraction)
int32_t groupId = getGroupId(pMemBucket->numOfSlots, i, pMemBucket->times - 1);
SIDList list = taosHashGet(pMemBucket->groupPagesMap, &groupId, sizeof(groupId));
assert(list->size > 0);
ASSERT(list != NULL && list->size > 0);
for (int32_t f = 0; f < list->size; ++f) {
SPageInfo *pgInfo = *(SPageInfo **)taosArrayGet(list, f);