From 5d04e7a51e085f628336dd5c8bcacec625569d92 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Thu, 12 Mar 2020 16:26:31 +0800 Subject: [PATCH] fix local variable 'size' hides a parameter of the same name --- src/system/detail/src/mgmtVgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/detail/src/mgmtVgroup.c b/src/system/detail/src/mgmtVgroup.c index 15a5fe808b..fc1421432b 100644 --- a/src/system/detail/src/mgmtVgroup.c +++ b/src/system/detail/src/mgmtVgroup.c @@ -412,8 +412,8 @@ void *mgmtVgroupActionUpdate(void *row, char *str, int size, int *ssize) { if (pDb->cfg.maxSessions != oldTables) { mPrint("vgroup:%d tables change from %d to %d", pVgroup->vgId, oldTables, pDb->cfg.maxSessions); taosUpdateIdPool(pVgroup->idPool, pDb->cfg.maxSessions); - int size = sizeof(STabObj *) * pDb->cfg.maxSessions; - pVgroup->meterList = (STabObj **)realloc(pVgroup->meterList, size); + int tabsize = sizeof(STabObj *) * pDb->cfg.maxSessions; + pVgroup->meterList = (STabObj **)realloc(pVgroup->meterList, tabsize); } } -- GitLab